Testing/CI #21

Merged
jp merged 40 commits from testing into master 2022-12-11 16:27:22 +01:00
3 changed files with 25 additions and 2 deletions
Showing only changes of commit c4ba63b83b - Show all commits
+3 -1
View File
@@ -1,2 +1,4 @@
from .shitpost import TestShitpost
from .general import TestGeneral
from .general import TestGeneral
from .chatbot import TestChatbot
from .points import TestPoints
+1 -1
View File
@@ -8,7 +8,7 @@ from discord.ext import commands
import Chatbot
class TestGeneral(unittest.TestCase):
class TestChatbot(unittest.TestCase):
def setUp(self):
dotenv.load_dotenv()
intents = discord.Intents.default()
+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)