Cleanup tests
This commit is contained in:
parent
fe32f4eb74
commit
9e7ca10c52
|
@ -31,10 +31,11 @@ def test_motd_with_expected_info(app, run_startup):
|
|||
logs = run_startup(app)
|
||||
|
||||
assert logs[1][2] == f"Sanic v{__version__}"
|
||||
assert logs[3][2] == "mode: debug, single worker"
|
||||
assert logs[4][2] == "server: sanic, HTTP/1.1"
|
||||
assert logs[5][2] == f"python: {platform.python_version()}"
|
||||
assert logs[6][2] == f"platform: {platform.platform()}"
|
||||
assert logs[3][2] == "app: test_motd_with_expected_info"
|
||||
assert logs[4][2] == "mode: debug, single worker"
|
||||
assert logs[5][2] == "server: sanic, HTTP/1.1"
|
||||
assert logs[6][2] == f"python: {platform.python_version()}"
|
||||
assert logs[7][2] == f"platform: {platform.platform()}"
|
||||
|
||||
|
||||
def test_motd_init():
|
||||
|
@ -61,7 +62,7 @@ def test_motd_display(caplog):
|
|||
│ │
|
||||
├───────────────────────┬────────┤
|
||||
│ foobar │ one: 1 │
|
||||
| ├────────┤
|
||||
│ ├────────┤
|
||||
│ │ two: 2 │
|
||||
└───────────────────────┴────────┘
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue
Block a user