From 8161e78a3bd96a24ed675c64627f9ec1ddaf967a Mon Sep 17 00:00:00 2001 From: wolflu05 <76838159+wolflu05@users.noreply.github.com> Date: Mon, 29 Apr 2024 11:13:16 +0200 Subject: [PATCH] Fix for py 3.12 --- .../tests/integration/test_bulkcreate_objects.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/inventree_bulk_plugin/tests/integration/test_bulkcreate_objects.py b/inventree_bulk_plugin/tests/integration/test_bulkcreate_objects.py index d1dec3c..4367dd1 100644 --- a/inventree_bulk_plugin/tests/integration/test_bulkcreate_objects.py +++ b/inventree_bulk_plugin/tests/integration/test_bulkcreate_objects.py @@ -709,6 +709,5 @@ def test_get_context(self): r.data = {"template": {"output": {"generate": {"variant_of": str(part.pk)}}}} obj = PartBulkCreateObject(r) ctx = obj.get_context() - self.assertDictContainsSubset( - {"name": "Test part", "description": "Test part desc", "is_template": True}, ctx["gen"]) + self.assertEqual(ctx["gen"] | {"name": "Test part", "description": "Test part desc", "is_template": True}, ctx["gen"]) self.assertEqual(obj.parent, part)