Skip to content

Commit

Permalink
Implement canary file generation functionality from contract test inp…
Browse files Browse the repository at this point in the history
…uts files
  • Loading branch information
rajdnp committed May 21, 2024
1 parent b4d1e69 commit cdca579
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_generate_canary.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,9 @@ def test_generate_canary_files(canary_file_generator_fixture, tmp_path):

canary_files = list(canary_folder_path.glob(f"{CANARY_FILE_PREFIX}*"))
assert len(canary_files) == 2
assert canary_files[0].name == f"{CANARY_FILE_PREFIX}2_001.yaml"
assert canary_files[1].name == f"{CANARY_FILE_PREFIX}1_001.yaml"
canary_files.sort()
assert canary_files[0].name == f"{CANARY_FILE_PREFIX}1_001.yaml"
assert canary_files[1].name == f"{CANARY_FILE_PREFIX}2_001.yaml"

bootstrap_file = canary_root_path / CANARY_DEPENDENCY_FILE_NAME
assert bootstrap_file.exists()
Expand Down

0 comments on commit cdca579

Please sign in to comment.