From 58d3608663338b1fda9ddfdded446ae09c214ed4 Mon Sep 17 00:00:00 2001 From: phette23 Date: Wed, 26 Jun 2024 10:52:38 -0700 Subject: [PATCH] test: fix subjects test 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 --- migrate/tests.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/migrate/tests.py b/migrate/tests.py index d15372e..bd42bdc 100644 --- a/migrate/tests.py +++ b/migrate/tests.py @@ -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)