summaryrefslogtreecommitdiffstats
path: root/tests/test_dbspecial.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-12-10 10:18:47 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-12-10 10:18:47 +0000
commitf969bdef4f3403e22b0a7bf84d0d4e86c2428a77 (patch)
treec7ee1703b3aec5e43412c64fee1fea665c6b3086 /tests/test_dbspecial.py
parentReleasing debian version 1.9.0-3. (diff)
downloadlitecli-f969bdef4f3403e22b0a7bf84d0d4e86c2428a77.tar.xz
litecli-f969bdef4f3403e22b0a7bf84d0d4e86c2428a77.zip
Merging upstream version 1.10.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/test_dbspecial.py')
-rw-r--r--tests/test_dbspecial.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/test_dbspecial.py b/tests/test_dbspecial.py
index 5128b5b..d3c7c07 100644
--- a/tests/test_dbspecial.py
+++ b/tests/test_dbspecial.py
@@ -1,6 +1,7 @@
from litecli.packages.completion_engine import suggest_type
from test_completion_engine import sorted_dicts
from litecli.packages.special.utils import format_uptime
+from litecli.packages.special.utils import check_if_sqlitedotcommand
def test_import_first_argument():
@@ -74,3 +75,16 @@ def test_indexes():
{"type": "schema"},
]
)
+
+
+def test_check_if_sqlitedotcommand():
+ test_cases = [
+ [".tables", True],
+ [".BiNarY", True],
+ ["binary", False],
+ [234, False],
+ [".changes test! test", True],
+ ["NotDotcommand", False],
+ ]
+ for command, expected_result in test_cases:
+ assert check_if_sqlitedotcommand(command) == expected_result