Skip to content

Commit 2196f27

Browse files
committed
โœ… Update tests with new format
1 parent 8138770 commit 2196f27

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

โ€Žtests/test_cli.pyโ€Ž

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ def test_dev_package() -> None:
6060
"workers": None,
6161
"root_path": "",
6262
"proxy_headers": True,
63+
"forwarded_allow_ips": None,
6364
"log_config": get_uvicorn_log_config(),
6465
}
6566
assert "Using import string: nested_package.package:app" in result.output
@@ -139,14 +140,10 @@ def test_run() -> None:
139140
"forwarded_allow_ips": None,
140141
"log_config": get_uvicorn_log_config(),
141142
}
142-
assert "Using import string single_file_app:app" in result.output
143-
assert (
144-
"โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ FastAPI CLI - Production mode โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ" in result.output
145-
)
146-
assert "โ”‚ Serving at: http://0.0.0.0:8000" in result.output
147-
assert "โ”‚ API docs: http://0.0.0.0:8000/docs" in result.output
148-
assert "โ”‚ Running in production mode, for development use:" in result.output
149-
assert "โ”‚ fastapi dev" in result.output
143+
assert "Using import string: single_file_app:app" in result.output
144+
assert "Starting production server ๐Ÿš€" in result.output
145+
assert "Server started at http://0.0.0.0:8000" in result.output
146+
assert "Documentation at http://0.0.0.0:8000/docs" in result.output
150147

151148

152149
def test_run_trust_proxy() -> None:

0 commit comments

Comments
ย (0)