Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Set install_dir on test config
  • Loading branch information
zooba committed Mar 31, 2026
commit a9d2ce4a8fffdc3595216c082ed9bd27060d4245
12 changes: 6 additions & 6 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,11 @@ def localserver():


class FakeConfig:
def __init__(self, global_dir, installs=[]):
self.global_dir = global_dir
self.root = global_dir.parent if global_dir else None
self.download_dir = self.root / "_cache" if self.root else None
self.start_folder = self.root / "_start" if self.root else None
def __init__(self, root, installs=[]):
self.root = self.install_dir = root
self.global_dir = root / "bin" if root else None
self.download_dir = root / "_cache" if root else None
self.start_folder = root / "_start" if root else None
self.pep514_root = REG_TEST_ROOT
self.confirm = False
self.installs = list(installs)
Expand Down Expand Up @@ -186,7 +186,7 @@ def ask_yn(self, question):

@pytest.fixture
def fake_config(tmp_path):
return FakeConfig(tmp_path / "bin")
return FakeConfig(tmp_path)


class RegistryFixture:
Expand Down
Loading