Skip to content

Commit

Permalink
fix test and pin plone.restapi due to breaking change
Browse files Browse the repository at this point in the history
  • Loading branch information
luca-bellenghi committed May 2, 2024
1 parent 378e42a commit b43cde0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
"redturtle.volto>=5.0.0",
"redturtle.bandi",
"z3c.unconfigure",
"plone.restapi<9.6.1",
"eea.api.taxonomy",
"openpyxl",
"collective.volto.enhancedlinks",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -322,9 +322,9 @@ def test_persona_substructure_created(self):
self.assertEqual(item["altri-documenti"].portal_type, "Document")
self.assertEqual(api.content.get_state(item["altri-documenti"]), "private")
self.assertEqual(item["altri-documenti"].constrain_types_mode, 1)
self.assertEqual(
item["altri-documenti"].locally_allowed_types, ("File", "Link", "Image")
)
self.assertIn("File", item["altri-documenti"].locally_allowed_types)
self.assertIn("Link", item["altri-documenti"].locally_allowed_types)
self.assertIn("Image", item["altri-documenti"].locally_allowed_types)
self.assertTrue(item["altri-documenti"].exclude_from_search)

def test_servizio_substructure_created(self):
Expand Down

0 comments on commit b43cde0

Please sign in to comment.