Cleanup tests

This commit is contained in:
Adam Hopkins 2023-08-21 21:37:45 +03:00
parent fe32f4eb74
commit 9e7ca10c52
No known key found for this signature in database
GPG Key ID: 9F85EE6C807303FB

View File

@ -31,10 +31,11 @@ def test_motd_with_expected_info(app, run_startup):
logs = run_startup(app) logs = run_startup(app)
assert logs[1][2] == f"Sanic v{__version__}" assert logs[1][2] == f"Sanic v{__version__}"
assert logs[3][2] == "mode: debug, single worker" assert logs[3][2] == "app: test_motd_with_expected_info"
assert logs[4][2] == "server: sanic, HTTP/1.1" assert logs[4][2] == "mode: debug, single worker"
assert logs[5][2] == f"python: {platform.python_version()}" assert logs[5][2] == "server: sanic, HTTP/1.1"
assert logs[6][2] == f"platform: {platform.platform()}" assert logs[6][2] == f"python: {platform.python_version()}"
assert logs[7][2] == f"platform: {platform.platform()}"
def test_motd_init(): def test_motd_init():
@ -61,7 +62,7 @@ def test_motd_display(caplog):
foobar one: 1 foobar one: 1
|
two: 2 two: 2
""" """