From 7b9362fef8054f18a24cdcdbbcdfcbe9b8b9f9e3 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Wed, 11 Oct 2023 16:04:35 +0100 Subject: [PATCH] Make test suite run again. --- tests/test_agenda.py | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/tests/test_agenda.py b/tests/test_agenda.py index 4e0429d..fd5ce5d 100644 --- a/tests/test_agenda.py +++ b/tests/test_agenda.py @@ -11,7 +11,6 @@ from agenda import ( next_uk_mothers_day, timedelta_display, uk_financial_year_end, - xmas_day, ) @@ -47,14 +46,14 @@ def test_get_next_timezone_transition(mock_now) -> None: def test_get_next_bank_holiday(mock_today) -> None: # Test get_next_bank_holiday function - next_holiday = get_next_bank_holiday(mock_today) - assert next_holiday["date"] == datetime.date(2023, 12, 25) - assert next_holiday["title"] == "Christmas Day" + next_holiday = get_next_bank_holiday(mock_today)[0] + assert next_holiday.date == datetime.date(2023, 12, 25) + assert next_holiday.title == "Christmas Day" def test_get_gbpusd(mock_now): # Test get_gbpusd function - gbpusd = get_gbpusd(mock_now) + gbpusd = get_gbpusd() assert isinstance(gbpusd, Decimal) # You can add more assertions based on your specific use case. @@ -65,12 +64,6 @@ def test_next_economist(mock_today): assert next_publication == datetime.date(2023, 10, 5) -def test_xmas_day(): - # Test xmas_day function - christmas = xmas_day(datetime.date(2023, 12, 25)) - assert christmas == datetime.date(2023, 12, 25) - - def test_uk_financial_year_end(): # Test uk_financial_year_end function financial_year_end = uk_financial_year_end(datetime.date(2023, 4, 1))