Skip to content

Commit

Permalink
fix: Use assertEqual instead of assertEquals for Python 3.11 compatib…
Browse files Browse the repository at this point in the history
…ility. (django-cms#195)

* Use assertEqual instead of assertEquals for Python 3.11 compatibility.

* Update changelog
  • Loading branch information
tirkarthi authored Sep 9, 2022
1 parent 7d4f637 commit d49b260
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
Changelog
=========

Unreleased
==========

* fix: Remove deprecated test suite assertEquals

3.1.0 (2022-08-19)
==================
Expand Down
2 changes: 1 addition & 1 deletion tests/test_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def test_full_plugin_render(self):
warnings.simplefilter("ignore")
response = self.client.post(request_url, data)

self.assertEquals(response.status_code, 200)
self.assertEqual(response.status_code, 200)
self.assertContains(response, '<div class="success">')

def test_optional_link(self):
Expand Down

0 comments on commit d49b260

Please sign in to comment.