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

Function test_reload_subdir_removal

tests/test_config.py:102–109  ·  view source on GitHub ↗
(reload_directory_structure: Path)

Source from the content-addressed store, hash-verified

100
101
102def test_reload_subdir_removal(reload_directory_structure: Path) -> None:
103 app_dir = reload_directory_structure / "app"
104
105 reload_dirs = [str(reload_directory_structure), "app", str(app_dir)]
106
107 with as_cwd(reload_directory_structure):
108 config = Config(app="tests.test_config:asgi_app", reload=True, reload_dirs=reload_dirs)
109 assert config.reload_dirs == [reload_directory_structure]
110
111
112def test_reload_included_dir_is_added_to_reload_dirs(

Callers

nothing calls this directly

Calls 2

as_cwdFunction · 0.90
ConfigClass · 0.90

Tested by

no test coverage detected