From cd8ed8bc5793985df2c1692072a932ceee517b95 Mon Sep 17 00:00:00 2001 From: salmonik Date: Wed, 8 Jul 2026 02:13:35 +0200 Subject: OPEN THE RUST GATES Signed-off-by: salmonik --- tests/cogs/test_say.py | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 tests/cogs/test_say.py (limited to 'tests/cogs/test_say.py') diff --git a/tests/cogs/test_say.py b/tests/cogs/test_say.py deleted file mode 100644 index 76f1b94..0000000 --- a/tests/cogs/test_say.py +++ /dev/null @@ -1,38 +0,0 @@ -import pytest -from unittest.mock import AsyncMock, patch -from cogs.say import Say -from conftest import MockApplicationContext - - -@pytest.fixture -def say_cog(bot): - cog = Say(bot) - return cog - - -@pytest.mark.asyncio -async def test_say_command(say_cog, mock_channel, mock_guild, bot): - ctx = MockApplicationContext(bot=bot, channel=mock_channel, guild=mock_guild) - - with patch.object(ctx, 'send', new_callable=AsyncMock) as mock_send: - await say_cog.say.callback(say_cog, ctx, "Hello World") - mock_send.assert_called_once_with(content="Hello World") - - -@pytest.mark.asyncio -async def test_say_command_empty_text(say_cog, mock_channel, mock_guild, bot): - ctx = MockApplicationContext(bot=bot, channel=mock_channel, guild=mock_guild) - - with patch.object(ctx, 'send', new_callable=AsyncMock) as mock_send: - await say_cog.say.callback(say_cog, ctx, "") - mock_send.assert_called_once_with(content="") - - -@pytest.mark.asyncio -async def test_say_command_long_text(say_cog, mock_channel, mock_guild, bot): - ctx = MockApplicationContext(bot=bot, channel=mock_channel, guild=mock_guild) - long_text = "A" * 2000 - - with patch.object(ctx, 'send', new_callable=AsyncMock) as mock_send: - await say_cog.say.callback(say_cog, ctx, long_text) - mock_send.assert_called_once_with(content=long_text) -- cgit v1.2.3