55import pytest
66
77
8- def run_cmd (cmd : str ) -> tuple [bytes , bytes , int ]:
8+ def run_cmd (cmd : str ) -> tuple [str , str , int ]:
99 process = subprocess .Popen (
1010 cmd ,
1111 shell = True ,
@@ -15,7 +15,7 @@ def run_cmd(cmd: str) -> tuple[bytes, bytes, int]:
1515 )
1616 stdout , stderr = process .communicate ()
1717 return_code = process .returncode
18- return stdout , stderr , return_code
18+ return stdout . decode ( "utf-8" ) , stderr . decode ( "utf-8" ) , return_code
1919
2020
2121@pytest .fixture
@@ -99,16 +99,22 @@ def test_project_setup(
9999
100100 monkeypatch .chdir (result .project_path )
101101
102- _ , __ , exit_code = run_cmd (f"{ dependency_management_tool } run inv env.init-dev" )
102+ stdout , stderr , exit_code = run_cmd (f"{ dependency_management_tool } run inv env.init-dev" )
103+ print (stdout )
104+ print (stderr )
103105 assert exit_code == 0
104106
105- _ , __ , exit_code = run_cmd (f"{ dependency_management_tool } run inv style" )
107+ stdout , stderr , exit_code = run_cmd (f"{ dependency_management_tool } run inv style" )
108+ print (stdout )
109+ print (stderr )
106110 assert exit_code == 0
107111
108112 run_cmd ("git add ." )
109- _ , __ , exit_code = run_cmd (
113+ stdout , stderr , exit_code = run_cmd (
110114 f"SKIP=no-commit-to-branch { dependency_management_tool } run pre-commit run --all-files"
111115 )
116+ print (stdout )
117+ print (stderr )
112118 assert exit_code == 0
113119
114120 run_cmd ("rm -rf .venv" )
0 commit comments