We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a73ac4 commit 7722f3eCopy full SHA for 7722f3e
tests/scenario_tests_async/test_events_agent.py
@@ -1,6 +1,9 @@
1
import asyncio
2
import json
3
-from unittest.mock import AsyncMock, MagicMock
+try:
4
+ from unittest.mock import AsyncMock, MagicMock
5
+except ImportError:
6
+ from mock import AsyncMock, MagicMock # type: ignore
7
8
import pytest
9
from slack_sdk.web.async_client import AsyncWebClient
0 commit comments