aboutsummaryrefslogtreecommitdiffstats
path: root/tests/conftest.py
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2019-10-20 21:14:12 +0200
committerGravatar GitHub <[email protected]>2019-10-20 21:14:12 +0200
commitf194df838c623d3c1b68809230f396a7241508b1 (patch)
treec4376bd37862d868fe100cababc731911d48fabd /tests/conftest.py
parentMerge pull request #528 from bendiller/antimalware-cog (diff)
parentMerge branch 'master' into unittest-migration (diff)
Merge pull request #517 from python-discord/unittest-migration
Migrating the test suite to the `unittest` framework
Diffstat (limited to 'tests/conftest.py')
-rw-r--r--tests/conftest.py32
1 files changed, 0 insertions, 32 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
deleted file mode 100644
index d3de4484d..000000000
--- a/tests/conftest.py
+++ /dev/null
@@ -1,32 +0,0 @@
-from unittest.mock import MagicMock
-
-import pytest
-
-from bot.constants import Roles
-from tests.helpers import AsyncMock
-
-
-def moderator_role():
- mock = MagicMock()
- mock.id = Roles.moderator
- mock.name = 'Moderator'
- mock.mention = f'&{mock.name}'
- return mock
-
-
-def simple_bot():
- mock = MagicMock()
- mock._before_invoke = AsyncMock()
- mock._after_invoke = AsyncMock()
- mock.can_run = AsyncMock()
- mock.can_run.return_value = True
- return mock
-
-
-def simple_ctx(simple_bot):
- mock = MagicMock()
- mock.bot = simple_bot
- return mock