summaryrefslogtreecommitdiffstats
path: root/tests/test_main.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_main.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_main.py')
-rw-r--r--tests/test_main.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test_main.py b/tests/test_main.py
index d4d52af..e2f183a 100644
--- a/tests/test_main.py
+++ b/tests/test_main.py
@@ -260,3 +260,13 @@ def test_import_command(executor):
"""
assert result.exit_code == 0
assert expected in "".join(result.output)
+
+
+def test_startup_commands(executor):
+ m = LiteCli(liteclirc=default_config_file)
+ assert m.startup_commands["commands"] == [
+ "create table startupcommands(a text)",
+ "insert into startupcommands values('abc')",
+ ]
+
+ # implement tests on executions of the startupcommands