chatbot and points unittests toegevoegd aan init

This commit is contained in:
2022-12-11 16:15:39 +01:00
parent c70bb1284f
commit c4ba63b83b
3 changed files with 25 additions and 2 deletions
+21
View File
@@ -0,0 +1,21 @@
import unittest
import praw
import dotenv
from datetime import datetime
import discord
from discord.ext import commands
import Points
class TestPoints(unittest.TestCase):
def setUp(self):
dotenv.load_dotenv()
intents = discord.Intents.default()
intents.message_content = True
intents.members = True
bot = commands.Bot(command_prefix=commands.when_mentioned_or('!'), description='Stroopwafel. Shitpost bot extraordinaire.', pm_help=True, intents=intents)
self.cog = Points.Points(bot)
def test_getUserBalance(self):
self.assertEqual(2, 1+1)