Skip to content

Commit

Permalink
flaked
Browse files Browse the repository at this point in the history
  • Loading branch information
daniele-andreotti committed Aug 27, 2024
1 parent 66b03fa commit 77f62cc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/iosanita/contenttypes/tests/test_ct_cartella_modulistica.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def setUp(self):
self.api_session = RelativeSession(self.portal_url)
self.api_session.headers.update({"Accept": "application/json"})
self.api_session.auth = (SITE_OWNER_NAME, SITE_OWNER_PASSWORD)

self.cartella_modulistica = api.content.create(
container=self.portal, type="CartellaModulistica", title="cm"
)
Expand Down Expand Up @@ -111,11 +111,11 @@ def test_cartella_modulistica_fields_default_fieldset(self):
)

def test_cartella_modulistica_expander(self):
file_ct = api.content.create(container=self.cartella_modulistica, type="File", title="xxx")
api.content.create(
container=self.cartella_modulistica, type="File", title="xxx"
)
commit()

resp = self.api_session.get("/cm/@modulistica-items").json()["items"][0]
self.assertEqual(resp["@type"], "File")
self.assertEqual(resp["id"], "xxx")


0 comments on commit 77f62cc

Please sign in to comment.