diff options
| author | 2020-05-07 20:23:00 +0200 | |
|---|---|---|
| committer | 2020-05-07 20:23:00 +0200 | |
| commit | 4a0b3ea1ef182ddbbb1f9d731b28768a049a531d (patch) | |
| tree | 291b574fdf9cab17e591f2ffdd0804f393928763 /tests | |
| parent | AntiMalware Tests - Added unittest for messages that were deleted in the mean... (diff) | |
AntiMalware Tests - Added unittest for cog setup
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/bot/cogs/test_antimalware.py | 10 |
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() |