aboutsummaryrefslogtreecommitdiff
path: root/app/tests/test_cli.py
blob: 194dd6412f02425f4e7ede50b0ec2fc725d2a5f0 (plain)
1
2
3
4
5
6
7
8
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
    assert runner.invoke(database_cli, ["admin-create"]).exit_code == 0