File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
tools/deployment-cli-tools/tests Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -241,7 +241,7 @@ def test_create_codefresh_configuration_tests():
241241 assert len (test_step ["commands" ]) == 2 , "Both default and custom api tests should be run"
242242
243243 st_cmd = test_step ["commands" ][0 ]
244- assert "--pre-run cloudharness_test.apitest_init" in st_cmd , "Prerun hook must be specified in schemathesis command "
244+ assert any ( "SCHEMATHESIS_HOOKS= cloudharness_test.apitest_init" in env for env in test_step [ 'environment' ]) , "Prerun hook must be specified in environment "
245245 assert "api/openapi.yaml" in st_cmd , "Openapi file must be passed to the schemathesis command"
246246
247247 assert "-c all" in st_cmd , "Default check loaded is `all` on schemathesis command"
You can’t perform that action at this time.
0 commit comments