Skip to content

Commit

Permalink
✅ [#993] UPDATE failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
stefrado committed Dec 3, 2024
1 parent 579438d commit ed45673
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/sdg/producten/tests/test_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -1181,11 +1181,15 @@ def test_history_displays_reference_version(self):
self.assertEqual(response.status_code, 200)

revisions = response.pyquery(".revision-list")
latest_active_version = self.product_version.gemaakt_door
latest_active_version = self.product_version

self.assertEqual(len(revisions), 2)
self.assertIn(str(latest_active_version), revisions[1].text_content())
self.assertIn(str(self.reference_product), revisions[1].text_content())
self.assertIn(
str(latest_active_version.gemaakt_door), revisions[1].text_content()
)
self.assertIn(
str(latest_active_version.gewijzigd_op), revisions[1].text_content()
)

@freeze_time(NOW_DATE)
def test_consultant__cannot_update_product(self):
Expand Down

0 comments on commit ed45673

Please sign in to comment.