Fix logging
This commit is contained in:
parent
6563ee28bf
commit
a1f36609b4
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user