The scheduler function tests, specifically test_on_schedule_call and test_on_schedule_decorator in tests/test_scheduler_fn.py, are currently failing on environments where the tzdata package is not installed.
PS G:\firebase-functions-python> uv run pytest
.
.
=============================================== short test summary info ===============================================
FAILED tests/test_scheduler_fn.py::TestScheduler::test_on_schedule_call - zoneinfo._common.ZoneInfoNotFoundError: 'No time zone found with key America/Los_Angeles'
FAILED tests/test_scheduler_fn.py::TestScheduler::test_on_schedule_decorator - zoneinfo._common.ZoneInfoNotFoundError: 'No time zone found with key America/Los_Angeles'
====================================== 2 failed, 97 passed, 13 warnings in 1.65s ======================================
PS G:\firebase-functions-python>
Proposed Fix
Add tzdata as a required dependency to the [project].dependencies section in pyproject.toml to ensure the timezone functionality works reliably across all environments.
[project]
# ...
dependencies = [
# ... existing dependencies
"tzdata", # Add this line
]
The scheduler function tests, specifically
test_on_schedule_callandtest_on_schedule_decoratorintests/test_scheduler_fn.py, are currently failing on environments where thetzdatapackage is not installed.Proposed Fix
Add
tzdataas a required dependency to the[project].dependenciessection inpyproject.tomlto ensure the timezone functionality works reliably across all environments.