Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
cekk committed Nov 10, 2023
1 parent 37dc120 commit 6ec1a98
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
# [Python version, tox env]
# - ["2.7", "py27-plone52"]
# - ["3.7", "py37-plone52"]
# - ["3.8", "py38-plone52"]
- ["3.8", "py38-plone52"]
- ["3.8", "py38-plone60"]
- ["3.9", "py39-plone60"]
- ["3.10", "py310-plone60"]
Expand Down
11 changes: 8 additions & 3 deletions src/redturtle/prenotazioni/tests/test_gates_overrides.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,6 @@ def test_if_gates_override_not_set_use_default(self):
type="PrenotazioniFolder",
title="Prenota foo",
daData=date.today(),
booking_types=[
{"name": "Type A", "duration": "30"},
],
gates=["Gate A"],
week_table=WEEK_TABLE_SCHEMA,
week_table_overrides=json.dumps(
Expand All @@ -110,6 +107,14 @@ def test_if_gates_override_not_set_use_default(self):
]
),
)
api.content.create(
type="PrenotazioneType",
title="Type A",
duration=30,
container=self.folder_prenotazioni,
gates=["all"],
)

view = api.content.get_view(
name="prenotazioni_context_state",
context=folder,
Expand Down

0 comments on commit 6ec1a98

Please sign in to comment.