Skip to content

Commit

Permalink
fix Django 4.2 template deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrDlouhy committed Jul 29, 2024
1 parent bb59b77 commit eee57a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_payu.py
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ def test_showing_cvv_form(self):
form = self.provider.get_form(payment=self.payment)
self.assertEqual(form.__class__.__name__, "WidgetPaymentForm")

template = Template("{{form}}")
template = Template("{{form.as_p}}")
rendered_html = template.render(Context({"form": form}))
self.assertIn("payu-widget", rendered_html)
self.assertIn("https://example.com/process_url/token", rendered_html)
Expand Down

0 comments on commit eee57a0

Please sign in to comment.