MCPcopy
hub / github.com/encode/uvicorn / test_valid_import

Function test_valid_import

tests/importer/test_importer.py:32–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30
31
32def test_valid_import() -> None:
33 instance = import_from_string("tempfile:TemporaryFile")
34 from tempfile import TemporaryFile
35
36 assert instance == TemporaryFile
37
38
39def test_no_import_needed() -> None:

Callers

nothing calls this directly

Calls 1

import_from_stringFunction · 0.90

Tested by

no test coverage detected