Skip to content

Commit

Permalink
Fixing tests by sorting reference and built files.
Browse files Browse the repository at this point in the history
  • Loading branch information
diogobaeder committed Apr 18, 2024
1 parent 1035521 commit 4eac55e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@


def assert_yaml_dirs_equal(a, b):
a_files = list(Path(a).rglob('*.yaml'))
b_files = list(Path(b).rglob('*.yaml'))
a_files = sorted(Path(a).rglob('*.yaml'))
b_files = sorted(Path(b).rglob('*.yaml'))

assert len(a_files) == len(b_files)

Expand All @@ -16,7 +16,7 @@ def assert_yaml_dirs_equal(a, b):
b_data = tuple(yaml.safe_load_all(f))

for a_datum, b_datum in zip(a_data, b_data):
assert a_data == b_data, f"""
assert a_datum == b_datum, f"""
Got from {a}: {a_data}
Expected from {b}: {b_data}
"""

0 comments on commit 4eac55e

Please sign in to comment.