chatbot and points unittests toegevoegd aan init
This commit is contained in:
+3
-1
@@ -1,2 +1,4 @@
|
|||||||
from .shitpost import TestShitpost
|
from .shitpost import TestShitpost
|
||||||
from .general import TestGeneral
|
from .general import TestGeneral
|
||||||
|
from .chatbot import TestChatbot
|
||||||
|
from .points import TestPoints
|
||||||
+1
-1
@@ -8,7 +8,7 @@ from discord.ext import commands
|
|||||||
|
|
||||||
import Chatbot
|
import Chatbot
|
||||||
|
|
||||||
class TestGeneral(unittest.TestCase):
|
class TestChatbot(unittest.TestCase):
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
dotenv.load_dotenv()
|
dotenv.load_dotenv()
|
||||||
intents = discord.Intents.default()
|
intents = discord.Intents.default()
|
||||||
|
|||||||
@@ -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)
|
||||||
Reference in New Issue
Block a user