Skip to content

Commit 68d1da9

Browse files
committed
Some more testing fixes
1 parent df63fa2 commit 68d1da9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_cli.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ def test_run() -> None:
138138
"workers": None,
139139
"root_path": "",
140140
"proxy_headers": True,
141+
"reload_dirs": None,
141142
"log_config": get_uvicorn_log_config(),
142143
}
143144
assert "Using import string: single_file_app:app" in result.output
@@ -183,6 +184,7 @@ def test_run_args() -> None:
183184
"workers": 2,
184185
"root_path": "/api",
185186
"proxy_headers": False,
187+
"reload_dirs": None,
186188
"log_config": get_uvicorn_log_config(),
187189
}
188190

@@ -222,6 +224,7 @@ def test_dev_help() -> None:
222224
assert "The root path is used to tell your app" in result.output
223225
assert "The name of the variable that contains the FastAPI app" in result.output
224226
assert "Use multiple worker processes." not in result.output
227+
assert "directories to watch for changes in." in result.output
225228

226229

227230
def test_run_help() -> None:
@@ -243,6 +246,7 @@ def test_run_help() -> None:
243246
assert "The root path is used to tell your app" in result.output
244247
assert "The name of the variable that contains the FastAPI app" in result.output
245248
assert "Use multiple worker processes." in result.output
249+
assert "directories to watch for changes in." not in result.output
246250

247251

248252
def test_callback_help() -> None:

0 commit comments

Comments
 (0)