diff options
author | Navan Chauhan <navanchauhan@gmail.com> | 2021-06-04 16:04:30 +0530 |
---|---|---|
committer | Navan Chauhan <navanchauhan@gmail.com> | 2021-06-04 16:04:30 +0530 |
commit | 9f4635b6e9f5a4bcc48dd754c52cb5d91c1810a5 (patch) | |
tree | 8c951ef46123c6a84f29b6c7aacfd1ea6ca982b3 | |
parent | 7ffc4f27431e0434819a47f85d61b877d346700d (diff) |
added test for cli commands
-rw-r--r-- | app/tests/test_cli.py | 6 |
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 |