aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2021-06-04 16:04:30 +0530
committerNavan Chauhan <navanchauhan@gmail.com>2021-06-04 16:04:30 +0530
commit9f4635b6e9f5a4bcc48dd754c52cb5d91c1810a5 (patch)
tree8c951ef46123c6a84f29b6c7aacfd1ea6ca982b3 /app
parent7ffc4f27431e0434819a47f85d61b877d346700d (diff)
added test for cli commands
Diffstat (limited to 'app')
-rw-r--r--app/tests/test_cli.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/tests/test_cli.py b/app/tests/test_cli.py
new file mode 100644
index 0000000..7a5aa73
--- /dev/null
+++ b/app/tests/test_cli.py
@@ -0,0 +1,6 @@
+from app import database_cli
+
+def test_database_commands(app, client):
+ runner = app.test_cli_runner()
+ assert runner.invoke(database_cli,["delete"]).exit_code == 0
+ assert runner.invoke(database_cli,["create"]).exit_code == 0 \ No newline at end of file