Browse Source

Add tests for dependencies utils, for coverage

pull/14897/head
Sebastián Ramírez 5 months ago
parent
commit
30be18dcf7
  1. 8
      tests/test_dependencies_utils.py

8
tests/test_dependencies_utils.py

@ -0,0 +1,8 @@
from fastapi.dependencies.utils import get_typed_annotation
def test_get_typed_annotation():
# For coverage
annotation = "None"
typed_annotation = get_typed_annotation(annotation, globals())
assert typed_annotation is None
Loading…
Cancel
Save