aboutsummaryrefslogtreecommitdiff
path: root/tests/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/utils.py')
-rw-r--r--tests/utils.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/utils.py b/tests/utils.py
new file mode 100644
index 0000000..20b76c8
--- /dev/null
+++ b/tests/utils.py
@@ -0,0 +1,8 @@
+from unittest.mock import Mock
+
+
+def get_mock_coro(return_value):
+ async def mock_coro(*args, **kwargs):
+ return return_value
+
+ return Mock(wraps=mock_coro)