Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
folix-01 committed Oct 11, 2023
1 parent 7baa5c0 commit b99e30f
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/redturtle/prenotazioni/tests/test_week_table_overrides.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def test_correct_settings(self):
"week_table_overrides": json.dumps(data),
"same_day_booking_disallowed": "yes",
"booking_types": [
{"name": "Type A", "duration": "30"},
{"name": "Type A", "duration": "30", "hidden": False},
],
"gates": ["Gate A"],
},
Expand Down Expand Up @@ -196,7 +196,7 @@ def test_date_range_required(self):
"week_table_overrides": json.dumps(data),
"same_day_booking_disallowed": "yes",
"booking_types": [
{"name": "Type A", "duration": "30"},
{"name": "Type A", "duration": "30", "hidden": False},
],
"gates": ["Gate A"],
},
Expand All @@ -220,7 +220,7 @@ def test_date_range_required(self):
"week_table_overrides": json.dumps(data),
"same_day_booking_disallowed": "yes",
"booking_types": [
{"name": "Type A", "duration": "30"},
{"name": "Type A", "duration": "30", "hidden": False},
],
"gates": ["Gate A"],
},
Expand Down Expand Up @@ -260,11 +260,12 @@ def test_wrong_day_based_on_month(self):
"week_table_overrides": json.dumps(data),
"same_day_booking_disallowed": "yes",
"booking_types": [
{"name": "Type A", "duration": "30"},
{"name": "Type A", "duration": "30", "hidden": False},
],
"gates": ["Gate A"],
},
)

self.assertEqual(response.status_code, 400)
self.assertIn(
'Selected day is too big for that month for "from" field.',
Expand All @@ -283,7 +284,7 @@ def test_wrong_day_based_on_month(self):
"week_table_overrides": json.dumps(data),
"same_day_booking_disallowed": "yes",
"booking_types": [
{"name": "Type A", "duration": "30"},
{"name": "Type A", "duration": "30", "hidden": False},
],
"gates": ["Gate A"],
},
Expand Down Expand Up @@ -322,7 +323,7 @@ def test_if_set_start_you_should_set_an_end(self):
"week_table_overrides": json.dumps(data),
"same_day_booking_disallowed": "yes",
"booking_types": [
{"name": "Type A", "duration": "30"},
{"name": "Type A", "duration": "30", "hidden": False},
],
"gates": ["Gate A"],
},
Expand Down Expand Up @@ -362,7 +363,7 @@ def test_if_set_end_you_should_set_a_start(self):
"week_table_overrides": json.dumps(data),
"same_day_booking_disallowed": "yes",
"booking_types": [
{"name": "Type A", "duration": "30"},
{"name": "Type A", "duration": "30", "hidden": False},
],
"gates": ["Gate A"],
},
Expand Down

0 comments on commit b99e30f

Please sign in to comment.