From ed456731cf669f7cb1c7b5758cbb68b1f3ce6eb1 Mon Sep 17 00:00:00 2001 From: Stefan Date: Tue, 3 Dec 2024 10:22:58 +0100 Subject: [PATCH] :white_check_mark: [#993] UPDATE failing tests --- src/sdg/producten/tests/test_product.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/sdg/producten/tests/test_product.py b/src/sdg/producten/tests/test_product.py index 9b539db2c..1f0d8c36e 100644 --- a/src/sdg/producten/tests/test_product.py +++ b/src/sdg/producten/tests/test_product.py @@ -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):