From ce8bedb9781898451d639649377b57948f1ae691 Mon Sep 17 00:00:00 2001 From: darksidecat <58224121+darksidecat@users.noreply.github.com> Date: Tue, 5 Oct 2021 23:40:53 +0300 Subject: [PATCH] update tests --- .../test_session/test_middlewares/test_request_logging.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_api/test_client/test_session/test_middlewares/test_request_logging.py b/tests/test_api/test_client/test_session/test_middlewares/test_request_logging.py index c1d6b5b3..33e40992 100644 --- a/tests/test_api/test_client/test_session/test_middlewares/test_request_logging.py +++ b/tests/test_api/test_client/test_session/test_middlewares/test_request_logging.py @@ -18,7 +18,7 @@ class TestRequestLogging: bot.add_result_for(GetMe, ok=True, result=User(id=42, is_bot=True, first_name="Test")) assert await bot.get_me() - assert "Make request with method=GetMe by bot id=42" in caplog.text + assert "Make request with method='GetMe' by bot id=42" in caplog.text async def test_ignore_methods(self, bot: MockedBot, caplog): caplog.set_level(logging.INFO) @@ -26,7 +26,7 @@ class TestRequestLogging: bot.add_result_for(GetMe, ok=True, result=User(id=42, is_bot=True, first_name="Test")) assert await bot.get_me() - assert "Make request with method=GetMe by bot id=42" not in caplog.text + assert "Make request with method='GetMe' by bot id=42" not in caplog.text bot.add_result_for( SendMessage, @@ -39,4 +39,4 @@ class TestRequestLogging: ), ) assert await bot.send_message(chat_id=1, text="Test") - assert "Make request with method=SendMessage by bot id=42" in caplog.text + assert "Make request with method='SendMessage' by bot id=42" in caplog.text