aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Jannes Jonkers <[email protected]>2020-05-07 20:23:00 +0200
committerGravatar Jannes Jonkers <[email protected]>2020-05-07 20:23:00 +0200
commit4a0b3ea1ef182ddbbb1f9d731b28768a049a531d (patch)
tree291b574fdf9cab17e591f2ffdd0804f393928763
parentAntiMalware Tests - Added unittest for messages that were deleted in the mean... (diff)
AntiMalware Tests - Added unittest for cog setup
-rw-r--r--tests/bot/cogs/test_antimalware.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/bot/cogs/test_antimalware.py b/tests/bot/cogs/test_antimalware.py
index da5cd9d11..67c640d23 100644
--- a/tests/bot/cogs/test_antimalware.py
+++ b/tests/bot/cogs/test_antimalware.py
@@ -90,3 +90,13 @@ class AntiMalwareCogTests(unittest.TestCase):
self.assertIn(
f"INFO:bot.cogs.antimalware:Tried to delete message `{self.message.id}`, but message could not be found.",
logs.output)
+
+
+class AntiMalwareSetupTests(unittest.TestCase):
+ """Tests setup of the `AntiMalware` cog."""
+
+ def test_setup(self):
+ """Setup of the extension should call add_cog."""
+ bot = MockBot()
+ antimalware.setup(bot)
+ bot.add_cog.assert_called_once()