Skip to content

Commit

Permalink
Make tests working with python 3.12 (#75)
Browse files Browse the repository at this point in the history
* test with py12 image

* Fix for py 3.12

* remove using custom image
  • Loading branch information
wolflu05 authored Apr 29, 2024
1 parent 84d3531 commit a0643a0
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 a0643a0

Please sign in to comment.