mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-06 01:12:33 -05:00
Make some dependency changes, support Python 3.10 and 3.11 (#5611)
Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>
This commit is contained in:
@@ -7,20 +7,17 @@ from redbot.core import cog_manager
|
||||
|
||||
|
||||
@pytest.mark.skip
|
||||
@pytest.mark.asyncio
|
||||
async def test_ensure_cogs_in_paths(cog_mgr, default_dir):
|
||||
cogs_dir = default_dir / "redbot" / "cogs"
|
||||
assert cogs_dir in await cog_mgr.paths()
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_install_path_set(cog_mgr: cog_manager.CogManager, tmpdir):
|
||||
path = Path(str(tmpdir))
|
||||
await cog_mgr.set_install_path(path)
|
||||
assert await cog_mgr.install_path() == path
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_install_path_set_bad(cog_mgr):
|
||||
path = Path("something")
|
||||
|
||||
@@ -28,14 +25,12 @@ async def test_install_path_set_bad(cog_mgr):
|
||||
await cog_mgr.set_install_path(path)
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_add_path(cog_mgr, tmpdir):
|
||||
path = Path(str(tmpdir))
|
||||
await cog_mgr.add_path(path)
|
||||
assert path in await cog_mgr.paths()
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_add_path_already_install_path(cog_mgr, tmpdir):
|
||||
path = Path(str(tmpdir))
|
||||
await cog_mgr.set_install_path(path)
|
||||
@@ -43,7 +38,6 @@ async def test_add_path_already_install_path(cog_mgr, tmpdir):
|
||||
await cog_mgr.add_path(path)
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_remove_path(cog_mgr, tmpdir):
|
||||
path = Path(str(tmpdir))
|
||||
await cog_mgr.add_path(path)
|
||||
|
||||
Reference in New Issue
Block a user