Skip to content

Commit 783d59d

Browse files
committed
chore: Update codefresh assert
1 parent 4e29a21 commit 783d59d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/deployment-cli-tools/tests/test_codefresh.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)