@@ -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