|
8 | 8 | from tests.constants import GLOBAL_NOX_SESSIONS |
9 | 9 |
|
10 | 10 |
|
11 | | -def test_demo_project_generation(robust_python_demo: Path) -> None: |
12 | | - assert robust_python_demo.exists() |
| 11 | +def test_demo_project_generation(robust_python_demo_with_setup: Path) -> None: |
| 12 | + assert robust_python_demo_with_setup.exists() |
13 | 13 |
|
14 | 14 |
|
15 | 15 | @pytest.mark.parametrize("session", GLOBAL_NOX_SESSIONS) |
16 | | -def test_demo_project_nox_session(robust_python_demo: Path, session: str) -> None: |
| 16 | +def test_demo_project_nox_session(robust_python_demo_with_setup: Path, session: str) -> None: |
17 | 17 | command: list[str] = ["nox", "-s", session] |
18 | 18 | result: subprocess.CompletedProcess = subprocess.run( |
19 | 19 | command, |
20 | | - cwd=robust_python_demo, |
| 20 | + cwd=robust_python_demo_with_setup, |
21 | 21 | capture_output=True, |
22 | 22 | ) |
23 | 23 | if result.check_returncode() != 0: |
24 | 24 | raise SystemExit(result.stdout) |
25 | 25 |
|
26 | 26 |
|
27 | | -def test_demo_project_nox_pre_commit(robust_python_demo: Path) -> None: |
| 27 | +def test_demo_project_nox_pre_commit(robust_python_demo_with_setup: Path) -> None: |
28 | 28 | command: list[str] = ["nox", "-s", "pre-commit"] |
29 | 29 | result: subprocess.CompletedProcess = subprocess.run( |
30 | 30 | command, |
31 | | - cwd=robust_python_demo, |
| 31 | + cwd=robust_python_demo_with_setup, |
32 | 32 | capture_output=True, |
33 | 33 | text=True, |
34 | 34 | timeout=20.0 |
35 | 35 | ) |
36 | 36 | assert result.returncode == 0 |
37 | 37 |
|
38 | 38 |
|
39 | | -def test_demo_project_nox_pre_commit_with_install(robust_python_demo_no_setup: Path) -> None: |
| 39 | +def test_demo_project_nox_pre_commit_with_install(robust_python_demo_with_setup: Path) -> None: |
40 | 40 | command: list[str] = ["nox", "-s", "pre-commit", "--", "install"] |
41 | | - pre_commit_hook_path: Path = robust_python_demo / ".git" / "hooks" / "pre-commit" |
| 41 | + pre_commit_hook_path: Path = robust_python_demo_with_setup / ".git" / "hooks" / "pre-commit" |
42 | 42 | assert not pre_commit_hook_path.exists() |
43 | 43 |
|
44 | 44 | result: subprocess.CompletedProcess = subprocess.run( |
45 | 45 | command, |
46 | | - cwd=robust_python_demo, |
| 46 | + cwd=robust_python_demo_with_setup, |
47 | 47 | capture_output=True, |
48 | 48 | text=True, |
49 | 49 | timeout=20.0 |
|
0 commit comments