From 9f4635b6e9f5a4bcc48dd754c52cb5d91c1810a5 Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Fri, 4 Jun 2021 16:04:30 +0530 Subject: added test for cli commands --- app/tests/test_cli.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 app/tests/test_cli.py (limited to 'app') 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 -- cgit v1.2.3