File tree Expand file tree Collapse file tree 1 file changed +10
-20
lines changed
Expand file tree Collapse file tree 1 file changed +10
-20
lines changed Original file line number Diff line number Diff line change @@ -113,23 +113,13 @@ def test_project_setup(
113113
114114 monkeypatch .chdir (result .project_path )
115115
116- stdout , stderr , exit_code = run_cmd (f"{ dependency_management_tool } run inv env.init-dev" )
117- print (stdout )
118- print (stderr )
119- assert exit_code == 0
120-
121- stdout , stderr , exit_code = run_cmd (f"{ dependency_management_tool } run inv style" )
122- print (stdout )
123- print (stderr )
124- assert exit_code == 0
125-
126- run_cmd ("git add ." )
127- stdout , stderr , exit_code = run_cmd (
128- f"SKIP=no-commit-to-branch,hadolint-docker { dependency_management_tool } run pre-commit run --all-files"
129- )
130- print (stdout )
131- print (stderr )
132- assert exit_code == 0
133-
134- if dependency_management_tool == "uv" :
135- run_cmd ("rm -rf .venv" )
116+ for command in [
117+ f"{ dependency_management_tool } run inv env.init-dev" ,
118+ f"{ dependency_management_tool } run inv style" ,
119+ f"git add . && SKIP=no-commit-to-branch,hadolint-docker { dependency_management_tool } run pre-commit run --all-files" ,
120+ f"{ dependency_management_tool } run inv env.clean" ,
121+ ]:
122+ stdout , stderr , exit_code = run_cmd (command )
123+ print (stdout )
124+ print (stderr )
125+ assert exit_code == 0
You can’t perform that action at this time.
0 commit comments