Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
folix-01 committed Nov 8, 2023
1 parent 79889af commit 5375fc6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/redturtle/prenotazioni/tests/test_available_slots.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def test_month_slots_called_without_params_return_available_slots_of_current_mon
)

@unittest.skipIf(
date.today().day >= 20 or date.today().day <= 2,
date.today().day >= 20 or date.today().day <= 8,
"issue testing in the last days of a month",
)
def test_if_start_and_not_end_return_all_available_slots_for_that_month(
Expand Down
4 changes: 2 additions & 2 deletions src/redturtle/prenotazioni/tests/test_day.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def test_bookings_returned_by_gate(self):
)

@unittest.skipIf(
date.today().day >= 20 or date.today().day <= 2,
date.today().day >= 20 or date.today().day <= 8,
"issue testing in the last days of a month",
)
def test_pauses_returned(self):
Expand Down Expand Up @@ -143,7 +143,7 @@ def test_bad_request_date(self):
self.assertEqual(res.status_code, 400)

@unittest.skipIf(
date.today().day >= 20 or date.today().day <= 2,
date.today().day >= 20 or date.today().day <= 8,
"issue testing in the last days of a month",
)
def test_daily_schedule(self):
Expand Down
2 changes: 1 addition & 1 deletion src/redturtle/prenotazioni/tests/test_vacation_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def tearDown(self):
self.api_session_anon.close()

@unittest.skipIf(
date.today().day >= 20 or date.today().day <= 2,
date.today().day >= 20 or date.today().day <= 8,
"issue testing in the last days of a month",
)
def test_add_vacation(self):
Expand Down

0 comments on commit 5375fc6

Please sign in to comment.