Skip to content

Commit

Permalink
test: fix subjects test
Browse files Browse the repository at this point in the history
the ordering of subjects could vary and doesn't matter so this test just needed to
be changed to a test of length and inclusion instead of exact equality
  • Loading branch information
phette23 committed Jun 26, 2024
1 parent 014dfab commit 58d3608
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion migrate/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -881,4 +881,6 @@ def test_find_subjects(input, expect):
)
def test_subjects(input, expect):
r = Record(input)
assert m(r)["subjects"] == expect
for subject in m(r)["subjects"]:
assert subject in expect
assert len(m(r)["subjects"]) == len(expect)

0 comments on commit 58d3608

Please sign in to comment.