diff options
| author | 2020-01-07 10:39:20 -0800 | |
|---|---|---|
| committer | 2020-02-12 10:07:51 -0800 | |
| commit | 7d3b46741cfd12d2f8cc40107464f7b3210b9af5 (patch) | |
| tree | 85c19bf1e9b2a552a2f7ecb230b52fad55b2cfc9 | |
| parent | Sync tests: add fixtures to mock dev core channel get and fetch (diff) | |
Sync tests: reset mocks in channel fixtures
| -rw-r--r-- | tests/bot/cogs/sync/test_base.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/bot/cogs/sync/test_base.py b/tests/bot/cogs/sync/test_base.py index 2c6857246..ff67eb334 100644 --- a/tests/bot/cogs/sync/test_base.py +++ b/tests/bot/cogs/sync/test_base.py @@ -26,6 +26,8 @@ class SyncerBaseTests(unittest.TestCase): def mock_dev_core_channel(self): """Fixture to return a mock channel and message for when `get_channel` is used.""" + self.bot.reset_mock() + mock_channel = helpers.MockTextChannel() mock_message = helpers.MockMessage() @@ -36,6 +38,8 @@ class SyncerBaseTests(unittest.TestCase): def mock_dev_core_channel_cache_miss(self): """Fixture to return a mock channel and message for when `fetch_channel` is used.""" + self.bot.reset_mock() + mock_channel = helpers.MockTextChannel() mock_message = helpers.MockMessage() |