File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717 | redbot\/vendored
1818 )/
1919 '''
20+
21+ [tool .pytest .ini_options ]
22+ minversion = " 6.0"
23+ addopts = " --import-mode=importlib"
Original file line number Diff line number Diff line change 44import weakref
55
66import pytest
7- from _pytest .monkeypatch import MonkeyPatch
87from redbot .core import Config
98from redbot .core .bot import Red
109from redbot .core import config as config_module , drivers
1110
1211__all__ = [
13- "monkeysession" ,
1412 "override_data_path" ,
1513 "coroutine" ,
1614 "driver" ,
3028]
3129
3230
33- @pytest .fixture (scope = "session" )
34- def monkeysession (request ):
35- mpatch = MonkeyPatch ()
36- yield mpatch
37- mpatch .undo ()
38-
39-
4031@pytest .fixture (autouse = True )
4132def override_data_path (tmpdir ):
4233 from redbot .core import data_manager
Original file line number Diff line number Diff line change 1010from redbot .cogs .downloader .installable import Installable , InstalledModule
1111
1212__all__ = [
13- "patch_relative_to" ,
1413 "repo_manager" ,
1514 "repo" ,
1615 "bot_repo" ,
@@ -38,14 +37,6 @@ async def fake_current_commit(*args, **kwargs):
3837 return "fake_result"
3938
4039
41- @pytest .fixture (scope = "module" , autouse = True )
42- def patch_relative_to (monkeysession ):
43- def fake_relative_to (self , some_path : Path ):
44- return self
45-
46- monkeysession .setattr ("pathlib.Path.relative_to" , fake_relative_to )
47-
48-
4940@pytest .fixture
5041def repo_manager (tmpdir_factory ):
5142 rm = RepoManager ()
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ install_requires =
5858 typing-extensions ==3.7.4.2
5959 uvloop ==0.14.0; sys_platform != "win32" and platform_python_implementation == "CPython"
6060 websockets ==8.1
61- yarl ==1.5.0
61+ yarl ==1.5.1
6262
6363[options.extras_require]
6464docs =
@@ -94,6 +94,7 @@ style =
9494 typed-ast ==1.4.1
9595test =
9696 astroid ==2.4.2
97+ iniconfig ==1.0.1
9798 isort ==4.3.21
9899 lazy-object-proxy ==1.4.3
99100 mccabe ==0.6.1
@@ -103,12 +104,11 @@ test =
103104 py ==1.9.0
104105 pylint ==2.5.3
105106 pyparsing ==2.4.7
106- pytest ==5.4.3
107+ pytest ==6.0.1
107108 pytest-asyncio ==0.14.0
108109 pytest-mock ==3.2.0
109110 six ==1.15.0
110111 toml ==0.10.1
111- wcwidth ==0.2.5
112112 wrapt ==1.12.1
113113
114114[options.entry_points]
You can’t perform that action at this time.
0 commit comments