@@ -124,20 +124,20 @@ def test_env_variables(
124124 with mock .patch .object (runserver , "uvicorn_run" ) as mock_run :
125125 result = cli_runner .invoke_ellar_command (["runserver" ], env = os .environ )
126126
127- assert result .exit_code == 0 , result .stderr
127+ assert result .exit_code == 0 , result .output
128128 _ , kwargs = mock_run .call_args
129129 assert kwargs ["http" ] == "h11"
130130
131131
132132def test_mis_match_env_variables (
133133 load_env_h11_protocol : None , process_runner , cli_runner , write_empty_py_project
134134):
135- result = cli_runner . invoke_ellar_command ([ "create-project" , "ellar_project_7" ])
136- assert result .exit_code == 0 , result .output
135+ result = process_runner ([ "ellar" , "create-project" , "ellar_project_7" ])
136+ assert result .returncode == 0 , result .stdout
137137 with mock .patch .object (runserver , "uvicorn_run" ) as mock_run :
138138 result = cli_runner .invoke_ellar_command (
139139 ["runserver" , "--http=httptools" ], env = os .environ
140140 )
141- assert result .exit_code == 0 , result .stderr
141+ assert result .exit_code == 0 , result .output
142142 _ , kwargs = mock_run .call_args
143143 assert kwargs ["http" ] == "httptools"
0 commit comments