Make test suite run again.
This commit is contained in:
parent
8b038b979b
commit
7b9362fef8
|
@ -11,7 +11,6 @@ from agenda import (
|
||||||
next_uk_mothers_day,
|
next_uk_mothers_day,
|
||||||
timedelta_display,
|
timedelta_display,
|
||||||
uk_financial_year_end,
|
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:
|
def test_get_next_bank_holiday(mock_today) -> None:
|
||||||
# Test get_next_bank_holiday function
|
# Test get_next_bank_holiday function
|
||||||
next_holiday = get_next_bank_holiday(mock_today)
|
next_holiday = get_next_bank_holiday(mock_today)[0]
|
||||||
assert next_holiday["date"] == datetime.date(2023, 12, 25)
|
assert next_holiday.date == datetime.date(2023, 12, 25)
|
||||||
assert next_holiday["title"] == "Christmas Day"
|
assert next_holiday.title == "Christmas Day"
|
||||||
|
|
||||||
|
|
||||||
def test_get_gbpusd(mock_now):
|
def test_get_gbpusd(mock_now):
|
||||||
# Test get_gbpusd function
|
# Test get_gbpusd function
|
||||||
gbpusd = get_gbpusd(mock_now)
|
gbpusd = get_gbpusd()
|
||||||
assert isinstance(gbpusd, Decimal)
|
assert isinstance(gbpusd, Decimal)
|
||||||
# You can add more assertions based on your specific use case.
|
# 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)
|
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():
|
def test_uk_financial_year_end():
|
||||||
# Test uk_financial_year_end function
|
# Test uk_financial_year_end function
|
||||||
financial_year_end = uk_financial_year_end(datetime.date(2023, 4, 1))
|
financial_year_end = uk_financial_year_end(datetime.date(2023, 4, 1))
|
||||||
|
|
Loading…
Reference in a new issue