From 9e7ca10c52fea00156c080383d6efc73ad69607c Mon Sep 17 00:00:00 2001 From: Adam Hopkins Date: Mon, 21 Aug 2023 21:37:45 +0300 Subject: [PATCH] Cleanup tests --- tests/test_motd.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tests/test_motd.py b/tests/test_motd.py index 2e9eeab7..5fe4a2f0 100644 --- a/tests/test_motd.py +++ b/tests/test_motd.py @@ -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 │ └───────────────────────┴────────┘ """