Skip to content

Commit

Permalink
Fix for py 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
wolflu05 committed Apr 29, 2024
1 parent bdd2d76 commit 8161e78
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 8161e78

Please sign in to comment.