From 814f88756c2995900d74efcb2b85d92e3135b069 Mon Sep 17 00:00:00 2001 From: Slava Date: Sun, 17 Mar 2024 11:48:25 +0000 Subject: [PATCH] Update test_lib_Cog.py --- tests/test_lib_Cog.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/test_lib_Cog.py b/tests/test_lib_Cog.py index ef0ab6c..b7e0f34 100644 --- a/tests/test_lib_Cog.py +++ b/tests/test_lib_Cog.py @@ -5,12 +5,11 @@ from mock import mock from ..lib.CogsPrep import cog_list, work_with_cogs -@pytest.mark.asyncio @mock.patch('discord_bot.lib.CogsPrep.cog_list') async def test_cog_list(mock_cog_list): with mock.patch('discord_bot.lib.CogsPrep.listdir') as MockClass: MockClass.return_value = ['cog1.py', 'cog2.py'] - result = await cog_list() + result = cog_list() assert result == ['cog1', 'cog2']