Skip to content

Commit

Permalink
✅ test
Browse files Browse the repository at this point in the history
  • Loading branch information
gregnewman committed Jul 5, 2023
1 parent 149dec5 commit e0f1d0f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions news/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -779,10 +779,6 @@ def test_news_delete(tp, make_entry, moderator_user, model_class):
content = str(response.content)
assert "Please confirm your choice" in content
assert entry.title in content
tp.assertResponseContains(
'<button type="submit" name="delete" class="py-2 px-3 text-white rounded-md bg-orange">Yes, delete</button>',
response,
)
# No entry removed just yet!
assert Entry.objects.filter(pk=entry.pk).count() == 1

Expand Down

0 comments on commit e0f1d0f

Please sign in to comment.