Skip to content

Commit

Permalink
Set config envdir
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Feb 18, 2025
1 parent a6e7486 commit 408184f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/unit/test_poetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def test_config_dev_dependency_group(create_config: CreateConfig) -> None:


@pytest.fixture
def session(monkeypatch: pytest.MonkeyPatch) -> nox.Session:
def session(monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> nox.Session:
"""Fixture for a Nox session."""
registry: Dict[str, Any] = {}
monkeypatch.setattr("nox.registry._REGISTRY", registry)
Expand All @@ -89,6 +89,7 @@ def test(session: nox.Session) -> None:

config = nox._options.options.namespace(posargs=[])
[runner] = nox.manifest.Manifest(registry, config)
runner.global_config.envdir = str(tmp_path)
runner._create_venv()

return nox.Session(runner)
Expand Down

0 comments on commit 408184f

Please sign in to comment.