discordbot/tests/test_starboard.py
2025-06-06 04:22:31 +00:00

15 lines
355 B
Python

import pytest
import discord
from discord.ext import commands
from cogs.starboard_cog import StarboardCog
@pytest.mark.asyncio
async def test_starboard_cog_load():
intents = discord.Intents.none()
bot = commands.Bot(command_prefix="!", intents=intents)
cog = StarboardCog(bot)
await bot.add_cog(cog)
assert cog in bot.cogs.values()