aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2024-02-19 19:06:25 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-20 13:21:31 +0100
commit6e7ca7290d4a59398438e14623d9e71db7c7508d (patch)
treec791342ed3589cccc3f03500e06c8d312bf3c5f8 /tests
parentb10a3afb80b3477d9df91357b90bb949ac168f52 (diff)
downloadwee-slack-6e7ca7290d4a59398438e14623d9e71db7c7508d.tar.gz
Move completion code to a separate file
Diffstat (limited to 'tests')
-rw-r--r--tests/test_commands.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_commands.py b/tests/test_commands.py
index 5868b56..3456d96 100644
--- a/tests/test_commands.py
+++ b/tests/test_commands.py
@@ -2,15 +2,15 @@
from itertools import accumulate
-import slack.commands
from slack.commands import parse_options
+from slack.shared import shared
def test_all_parent_commands_exist():
- for command in slack.commands.commands:
+ for command in shared.commands:
parents = accumulate(command.split(" "), lambda x, y: f"{x} {y}")
for parent in parents:
- assert parent in slack.commands.commands
+ assert parent in shared.commands
def test_parse_options_without_options():