added base tests

This commit is contained in:
bacon
2024-03-15 15:46:45 +03:00
parent eca1f01c16
commit 736621c516
7 changed files with 126 additions and 9 deletions

45
tests/test_bot.py Normal file
View File

@@ -0,0 +1,45 @@
import tracemalloc
from disnake import Intents
from disnake.ext import commands
tracemalloc.start()
intents = Intents(messages=True,
message_content=True,
)
class Cog(commands.Cog):
@commands.command()
async def my_cmd(self, ctx):
pass
class CogTwo(commands.Cog):
async def bot_check(self, ctx) -> bool:
pass
class CogThree(commands.Cog):
async def bot_check_once(self, ctx) -> bool:
pass
class CogFour(commands.Cog):
async def bot_slash_command_check(self, ctx) -> bool:
pass
class CogFive(commands.Cog):
async def can_run(self, ctx) -> bool:
pass
def test_bot():
bot = commands.Bot(command_prefix='$', intents=intents)
bot.add_cog(Cog())
bot.add_cog(CogTwo())
bot.add_cog(CogThree())
bot.add_cog(CogFour())
bot.add_cog(CogFive())