aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_hook_process_hashtable.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2022-10-30 08:04:23 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-18 11:32:52 +0100
commit8257efd22ea2ac9088098c161dc554d82bbdd974 (patch)
tree8afa6f161926dd128d383adaab4faf5762b090c5 /tests/test_hook_process_hashtable.py
parentf0793c332dceb937c2571750115561626b5ae552 (diff)
downloadwee-slack-8257efd22ea2ac9088098c161dc554d82bbdd974.tar.gz
Fix tests after file split
Diffstat (limited to 'tests/test_hook_process_hashtable.py')
-rw-r--r--tests/test_hook_process_hashtable.py12
1 files changed, 4 insertions, 8 deletions
diff --git a/tests/test_hook_process_hashtable.py b/tests/test_hook_process_hashtable.py
index 27629b5..e8a1f64 100644
--- a/tests/test_hook_process_hashtable.py
+++ b/tests/test_hook_process_hashtable.py
@@ -3,13 +3,9 @@ from unittest.mock import MagicMock, patch
import pytest
import weechat
-from slack import (
- FutureProcess,
- FutureTimer,
- hook_process_hashtable,
- weechat_task_cb,
-)
-import slack
+import slack.http
+from slack.http import hook_process_hashtable
+from slack.task import FutureProcess, FutureTimer, weechat_task_cb
@patch.object(weechat, "hook_process_hashtable")
@@ -51,7 +47,7 @@ def test_hook_process_hashtable_chunked(mock_method: MagicMock):
assert excinfo.value.value == (command, 0, "o1o2o3", "e1e2e3")
-@patch.object(slack, "available_file_descriptors")
+@patch.object(slack.http, "available_file_descriptors")
def test_hook_process_hashtable_wait_on_max_file_descriptors(
mock_available_file_descriptors: MagicMock,
):