aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-05-23 10:23:45 +0300
committerGravatar ks129 <[email protected]>2020-06-11 08:59:39 +0300
commit78782868040d1b2ca0b655efc4123b3d9b6bfda3 (patch)
tree72a0f5473d1b94322e92212d9dcd4eb69d53a0fb
parentMerge pull request #910 from python-discord/bug/backend/906/converter-year-range (diff)
Jam Tests: Created base test layout
-rw-r--r--tests/bot/cogs/test_jams.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/bot/cogs/test_jams.py b/tests/bot/cogs/test_jams.py
new file mode 100644
index 000000000..33dee593e
--- /dev/null
+++ b/tests/bot/cogs/test_jams.py
@@ -0,0 +1,14 @@
+import unittest
+
+from bot.constants import Roles
+from tests.helpers import MockBot, MockContext, MockMember, MockRole
+
+
+class JamCreateTeamTests(unittest.IsolatedAsyncioTestCase):
+ """Tests for `createteam` command."""
+
+ def setUp(self):
+ self.bot = MockBot()
+ self.admin_role = MockRole(name="Admins", id=Roles.admins)
+ self.command_user = MockMember([self.admin_role])
+ self.context = MockContext(bot=self.bot, author=self.command_user)