def test_tz_is_required(environment) -> None:
    """Verify template parsing fails without a timezone."""
    with pytest.raises(exceptions.TemplateSyntaxError):
        environment.from_string('{% now %}')
Verify template parsing fails without a timezone.
tests/test_time_extension.py