uptated requrements.txt

This commit is contained in:
bacon
2024-03-17 17:14:13 +03:00
parent a4e672597c
commit 786c580b47
2 changed files with 5 additions and 6 deletions

View File

@@ -19,9 +19,10 @@ def test_cog_list(mock_cog_list):
@pytest.mark.parametrize("cog", ["cog1.py", "cog2"])
@pytest.mark.parametrize("what_do", ['load', 'unload', 'reload', 'disable', 'enable'])
async def test_work_with_cogs(what_do, cog):
mock_logger = mock.MagicMock()
with mock.patch('discord_bot.lib.CogsPrep.logger.info') as mocked_logger:
mock_bot = mock.MagicMock(spec=Bot)
mock_logger = mock.AsyncMock()
with (mock.patch('discord_bot.lib.CogsPrep.logger.info') as mocked_logger):
mock_bot = mock.AsyncMock()
await mock_bot(spec=Bot)
with mock.patch('discord_bot.lib.CogsPrep.rename') as mock_rename:
mock_rename.return_value = True
result = await work_with_cogs(what_do, mock_bot, cog)