From 636f4663aa62e1a119fe0bc03e2dd011066473c9 Mon Sep 17 00:00:00 2001 From: Madhu Kanoor Date: Wed, 15 Feb 2023 02:10:26 -0500 Subject: [PATCH] Add log_format and log_date_format in pytest.ini (#370) When the timed use cases fail, the time in the log messages will help in debugging. --- pytest.ini | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pytest.ini b/pytest.ini index b50506c1..6f790ba4 100644 --- a/pytest.ini +++ b/pytest.ini @@ -2,6 +2,8 @@ asyncio_mode = strict log_file_level = INFO log_cli = true +log_format = %(asctime)s %(levelname)s %(message)s +log_date_format = %Y-%m-%d %H:%M:%S markers = e2e: mark for end to end tests temporal: mark for time based tests