MCPcopy
hub / github.com/encode/starlette / test_templates_require_directory_or_environment

Function test_templates_require_directory_or_environment

tests/test_templates.py:138–140  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

136
137
138def test_templates_require_directory_or_environment() -> None:
139 with pytest.raises(AssertionError, match="either 'directory' or 'env' arguments must be passed"):
140 Jinja2Templates() # type: ignore[call-overload]
141
142
143def test_templates_require_directory_or_environment_not_both() -> None:

Callers

nothing calls this directly

Calls 1

Jinja2TemplatesClass · 0.90

Tested by

no test coverage detected