mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-22 18:57:59 -05:00
Bump pytest to version 6.0.1 and yarl to 1.5.1 (#4126)
* Update pytest to version 6.0.1 * remove some awful monkeypatching * use new import mode * Update yarl to 1.5.1
This commit is contained in:
@@ -10,7 +10,6 @@ from redbot.cogs.downloader.repo_manager import RepoManager, Repo, ProcessFormat
|
||||
from redbot.cogs.downloader.installable import Installable, InstalledModule
|
||||
|
||||
__all__ = [
|
||||
"patch_relative_to",
|
||||
"repo_manager",
|
||||
"repo",
|
||||
"bot_repo",
|
||||
@@ -38,14 +37,6 @@ async def fake_current_commit(*args, **kwargs):
|
||||
return "fake_result"
|
||||
|
||||
|
||||
@pytest.fixture(scope="module", autouse=True)
|
||||
def patch_relative_to(monkeysession):
|
||||
def fake_relative_to(self, some_path: Path):
|
||||
return self
|
||||
|
||||
monkeysession.setattr("pathlib.Path.relative_to", fake_relative_to)
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def repo_manager(tmpdir_factory):
|
||||
rm = RepoManager()
|
||||
|
||||
Reference in New Issue
Block a user