Skip to content

Commit

Permalink
assertContains is not intended for non-httpresponses
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandernst committed Jul 4, 2024
1 parent a3c3d4e commit 93b541c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions django_walletpass/tests/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ def test_wallet_pass(self):
instance = builder.write_to_model()
instance.save()

self.assertContains(
admin_view.wallet_pass_(instance),
"<img src='/static/admin/passbook_icon.svg'/></a>",
self.assertTrue(
"<img src='/static/admin/passbook_icon.svg'/></a>" in
admin_view.wallet_pass_(instance)
)


Expand Down

0 comments on commit 93b541c

Please sign in to comment.