Skip to content

Commit

Permalink
[#3889] Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Viicos committed Apr 2, 2024
1 parent f7b5153 commit e99afaf
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/openforms/logging/tests/test_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,14 @@ def test_superuser_cant_delete_logs_with_bulk_action(self):
html_form = changelist.forms["changelist-form"]

# It is not possible to select the "delete_selected" option
self.assertIsNone(html_form.fields.get("action"))
self.assertEqual(
[
option
for option in html_form.fields.get("action")[0].options
if option[0] == "delete_selected"
],
[],
)

def test_superuser_cant_delete_individual_logs(self):
submission = SubmissionFactory.create(completed_on=timezone.now())
Expand Down

0 comments on commit e99afaf

Please sign in to comment.