Fix logging

This commit is contained in:
prryplatypus 2021-10-23 21:40:57 +02:00
parent 6563ee28bf
commit a1f36609b4
No known key found for this signature in database
GPG Key ID: 6687E128FB70819B

View File

@ -187,17 +187,17 @@ def test_logger_static_and_secure(caplog):
port = test_client.port port = test_client.port
assert caplog.record_tuples[0] == ( assert (
"sanic.root", "sanic.root",
logging.INFO, logging.INFO,
f"Goin' Fast @ https://127.0.0.1:{port}", f"Goin' Fast @ https://127.0.0.1:{port}",
) ) in caplog.record_tuples
assert caplog.record_tuples[1] == ( assert (
"sanic.root", "sanic.root",
logging.INFO, logging.INFO,
f"https://127.0.0.1:{port}/", f"https://127.0.0.1:{port}/",
) ) in caplog.record_tuples
assert caplog.record_tuples[2] == ("sanic.root", logging.INFO, rand_string) assert ("sanic.root", logging.INFO, rand_string) in caplog.record_tuples
assert caplog.record_tuples[-1] == ( assert caplog.record_tuples[-1] == (
"sanic.root", "sanic.root",
logging.INFO, logging.INFO,