Skip to content

Commit

Permalink
Linting and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
sylviamclaughlin authored Apr 27, 2024
1 parent ce9d6e7 commit ad252a1
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,6 @@ def test_no_available_slots_within_search_limit(
def test_get_federal_holidays(requests_mock):
# set the timeout to 10s
requests_mock.DEFAULT_TIMEOUT = 10

# Mock the API response
mocked_response = {
"holidays": [
Expand All @@ -518,7 +517,6 @@ def test_get_federal_holidays(requests_mock):
def test_get_federal_holidays_with_different_year(requests_mock):
# set the timeout to 10s
requests_mock.DEFAULT_TIMEOUT = 10

# Mock the API response for a different year
requests_mock.get(
"https://canada-holidays.ca/api/v1/holidays?federal=true&year=2025",
Expand All @@ -540,9 +538,8 @@ def test_get_federal_holidays_with_different_year(requests_mock):

# Test that an empty list is returned when there are no holidays
def test_api_returns_empty_list(requests_mock):
# set the timeout to 10s
# set the timeout to 10s
requests_mock.DEFAULT_TIMEOUT = 10

# Mock no holidays
requests_mock.get(
"https://canada-holidays.ca/api/v1/holidays?federal=true&year=2024",
Expand All @@ -569,7 +566,7 @@ def test_leap_year_handling(requests_mock):
"observedDate": "2024-02-29"
} # Assuming this is a special leap year holiday
]
}
},
)

# Execute
Expand Down

0 comments on commit ad252a1

Please sign in to comment.