File tree Expand file tree Collapse file tree
src/canary_pyt/tests/canary_pyt Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -208,11 +208,11 @@ def test_adapter_apply_populates_model_from_calls(tmp_path: Path) -> None:
208208def test_artifact_upon_mapping_success_failure (tmp_path : Path ) -> None :
209209 m = make_model (tmp_path , "x.pyt" )
210210 a = PYTAdapter (m )
211- a .f_artifact ("out .txt" , upon = "success" )
212- a .f_artifact ("err .txt" , upon = "failure" )
211+ a .f_artifact ("baz .txt" , upon = "success" )
212+ a .f_artifact ("spam .txt" , upon = "failure" )
213213 specs = lock_model (m )
214- arts = specs [0 ].artifacts
215- assert [ x . when for x in arts ] == [ "on_success" , "on_failure" ]
214+ w = { a . when for a in specs [0 ].artifacts if a . pattern in ( "baz.txt" , "spam.txt" )}
215+ assert w == { "on_success" , "on_failure" }
216216
217217
218218def test_artifact_invalid_upon_raises (tmp_path : Path ) -> None :
You can’t perform that action at this time.
0 commit comments