Skip to content

Commit cbec3d4

Browse files
author
Swaroop Manchala
committed
test: add basic tests for shell integration helper
1 parent 8b3e08c commit cbec3d4

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/test_shell_integration.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
from cortex.shell_integration import suggest_command
2+
3+
4+
def test_suggest_command_empty():
5+
assert suggest_command("") is None
6+
7+
8+
def test_suggest_command_text():
9+
# We only check that it does not crash
10+
result = suggest_command("install docker")
11+
assert result is None or isinstance(result, str)

0 commit comments

Comments
 (0)