File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -152,11 +152,11 @@ def localserver():
152152
153153
154154class FakeConfig :
155- def __init__ (self , global_dir , installs = []):
156- self .global_dir = global_dir
157- self .root = global_dir . parent if global_dir else None
158- self .download_dir = self . root / "_cache" if self . root else None
159- self .start_folder = self . root / "_start" if self . root else None
155+ def __init__ (self , root , installs = []):
156+ self .root = self . install_dir = root
157+ self .global_dir = root / "bin" if root else None
158+ self .download_dir = root / "_cache" if root else None
159+ self .start_folder = root / "_start" if root else None
160160 self .pep514_root = REG_TEST_ROOT
161161 self .confirm = False
162162 self .installs = list (installs )
@@ -186,7 +186,7 @@ def ask_yn(self, question):
186186
187187@pytest .fixture
188188def fake_config (tmp_path ):
189- return FakeConfig (tmp_path / "bin" )
189+ return FakeConfig (tmp_path )
190190
191191
192192class RegistryFixture :
You can’t perform that action at this time.
0 commit comments