Skip to content

Commit 004ffdb

Browse files
committed
fix: adjust invalid fixture references
1 parent 55c2cac commit 004ffdb

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def robust_demo__path(request: FixtureRequest, demos_folder: Path, robust_demo__
4848

4949
@pytest.fixture(scope="session")
5050
def robust_demo__name(request: FixtureRequest) -> str:
51-
return getattr(request, "param", "robust-demo")
51+
return getattr(request, "param", "robust-python-demo-with-setup")
5252

5353

5454
@pytest.fixture(scope="session")

tests/integration_tests/test_robust_python_demo.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,37 +13,38 @@ def test_demo_project_generation(robust_python_demo_with_setup: Path) -> None:
1313

1414

1515
@pytest.mark.parametrize("session", GLOBAL_NOX_SESSIONS)
16-
def test_demo_project_nox_session(robust_python_demo_with_setup: Path, session: str) -> None:
16+
def test_demo_project_nox_session(robust_demo: Path, session: str) -> None:
1717
command: list[str] = ["nox", "-s", session]
1818
result: subprocess.CompletedProcess = subprocess.run(
1919
command,
20-
cwd=robust_python_demo_with_setup,
20+
cwd=robust_demo,
2121
capture_output=True,
22+
text=True
2223
)
2324
if result.check_returncode() != 0:
2425
raise SystemExit(result.stdout)
2526

2627

27-
def test_demo_project_nox_pre_commit(robust_python_demo_with_setup: Path) -> None:
28+
def test_demo_project_nox_pre_commit(robust_demo: Path) -> None:
2829
command: list[str] = ["nox", "-s", "pre-commit"]
2930
result: subprocess.CompletedProcess = subprocess.run(
3031
command,
31-
cwd=robust_python_demo_with_setup,
32+
cwd=robust_demo,
3233
capture_output=True,
3334
text=True,
3435
timeout=20.0
3536
)
3637
assert result.returncode == 0
3738

3839

39-
def test_demo_project_nox_pre_commit_with_install(robust_python_demo_with_setup: Path) -> None:
40+
def test_demo_project_nox_pre_commit_with_install(robust_demo: Path) -> None:
4041
command: list[str] = ["nox", "-s", "pre-commit", "--", "install"]
41-
pre_commit_hook_path: Path = robust_python_demo_with_setup / ".git" / "hooks" / "pre-commit"
42+
pre_commit_hook_path: Path = robust_demo / ".git" / "hooks" / "pre-commit"
4243
assert not pre_commit_hook_path.exists()
4344

4445
result: subprocess.CompletedProcess = subprocess.run(
4546
command,
46-
cwd=robust_python_demo_with_setup,
47+
cwd=robust_demo,
4748
capture_output=True,
4849
text=True,
4950
timeout=20.0

0 commit comments

Comments
 (0)