aboutsummaryrefslogtreecommitdiff
path: root/app/tests/test_cli.py
blob: bbbe53b6935b36cd6d38da9a113bcdfa3a8deec1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# -*- coding: utf-8 -*-
"""
Test(s) for CLI Commands
"""
from app import database_cli


def test_database_commands(app, client):
    """
    Test for Database CLI Commands

    Test for initialisation, creation and admin user creation.
    """
    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