Skip to content

Commit

Permalink
✅ [#994] UPDATE failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
stefrado committed Dec 10, 2024
1 parent 844df04 commit 6414006
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 8 additions & 0 deletions src/sdg/producten/tests/test_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -1194,6 +1194,14 @@ def test_history_displays_reference_version(self):
)
self.assertEqual(str(rev_date), str(edit_date))

for index, item in enumerate(revisions[1].getiterator("strong")):
if index == 1:
rev_date = datetime.fromisoformat(item.values()[0])
edit_date = datetime.fromisoformat(
str(self.product_version.gewijzigd_op)
)
self.assertEqual(str(rev_date), str(edit_date))

@freeze_time(NOW_DATE)
def test_consultant__cannot_update_product(self):
self.role.is_redacteur = False
Expand Down
3 changes: 0 additions & 3 deletions src/sdg/templates/producten/_include/productversie.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@
{% endblocktrans %}
{% endif %}
</span>

<span>
</span>
</li>
{% if version.interne_opmerkingen %}
<li class="revision-list__remarks" title="{% trans 'Interne opmerkingen' %}">
Expand Down

0 comments on commit 6414006

Please sign in to comment.