summaryrefslogtreecommitdiffstats
path: root/test/t/test_carton.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/t/test_carton.py')
-rw-r--r--test/t/test_carton.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/t/test_carton.py b/test/t/test_carton.py
new file mode 100644
index 0000000..1c2e453
--- /dev/null
+++ b/test/t/test_carton.py
@@ -0,0 +1,11 @@
+import pytest
+
+
+class TestCarton:
+ @pytest.mark.complete("carton ", require_cmd=True)
+ def test_commands(self, completion):
+ assert all(x in completion for x in "help install".split())
+
+ @pytest.mark.complete("carton install -", require_cmd=True)
+ def test_install_options(self, completion):
+ assert all(x in completion for x in "--cached --help".split())