Skip to content

Commit

Permalink
fix py3.12 test error
Browse files Browse the repository at this point in the history
  • Loading branch information
djay committed Nov 24, 2023
1 parent 41acc19 commit 5edc89e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/plone/restapi/tests/test_services_controlpanels.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def test_get_schema_with_new_field(self):

response = self.api_session.get("/@controlpanels/editing")
old_data = response.json()["data"]
self.assertEquals(old_data["ext_editor"], True)
self.assertEqual(old_data["ext_editor"], True)

# It's too hard to add another field so lets delete the registry data to
# simulate what it's like starting when the schema has a field and no
Expand All @@ -145,12 +145,11 @@ def test_get_schema_with_new_field(self):

response = self.api_session.get("/@controlpanels/editing")
old_data = response.json()["data"]
self.assertEquals(old_data["ext_editor"], False)
self.assertEqual(old_data["ext_editor"], False)

# ensure there is no problem trying to set missing registry entries
new_values = {
"ext_editor": not old_data["ext_editor"],
"lock_on_ttw_edit": not old_data["lock_on_ttw_edit"],
}
response = self.api_session.patch("/@controlpanels/editing", json=new_values)

Expand Down

0 comments on commit 5edc89e

Please sign in to comment.