aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2023-10-22 12:42:48 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-18 11:32:54 +0100
commitd712abc15a7297129c8e8a445eb3b9a20bcf4c02 (patch)
tree63121245990300ceaf259af15362b27e3b9a97f0 /tests
parent90e78bb00e9f4457f5cd5bb0f181a9b6fad779df (diff)
downloadwee-slack-d712abc15a7297129c8e8a445eb3b9a20bcf4c02.tar.gz
Make SlackConversation constructor async
This is perhaps a bit hacky, but it makes the type checker enforce that we complete the async initialization of SlackConversation instead of getting a runtime exception.
Diffstat (limited to 'tests')
-rw-r--r--tests/conftest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
index 954de87..46dd6fe 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -165,7 +165,7 @@ def workspace():
channel_public_future = Future[SlackConversation]()
w.conversations[channel_public_id] = channel_public_future
- channel_public = SlackConversation.create_from_info(w, channel_public_info)
+ channel_public = SlackConversation(w, channel_public_info)
try:
channel_public.send(None)
except StopIteration as e: