From 2c5cbfd45b800348f86a88a1f3468bbedde2af2b Mon Sep 17 00:00:00 2001 From: Petr Jasek Date: Tue, 9 Jul 2024 07:28:41 +0200 Subject: [PATCH] test different order --- server/planning/tests/events_service_test.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/planning/tests/events_service_test.py b/server/planning/tests/events_service_test.py index 5cd2f5544..9dce29300 100644 --- a/server/planning/tests/events_service_test.py +++ b/server/planning/tests/events_service_test.py @@ -17,6 +17,11 @@ def test_is_new_version(): assert not service.is_new_version(new_event, old_event) + new_event["subject"] = [{"qcode": "foo"}, {"qcode": "bar"}] + old_event["subject"] = [{"qcode": "bar"}, {"qcode": "foo"}] + + assert not service.is_new_version(new_event, old_event) + new_event["subject"] = [{"qcode": "foo"}] old_event["subject"] = [{"qcode": "bar"}]