diff options
Diffstat (limited to 'app/tests/test_admin.py')
-rw-r--r-- | app/tests/test_admin.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/tests/test_admin.py b/app/tests/test_admin.py index ae20f2b..94e8320 100644 --- a/app/tests/test_admin.py +++ b/app/tests/test_admin.py @@ -1,7 +1,17 @@ +# -*- coding: utf-8 -*- +""" +Test(s) for Admin Portal +""" from app import database_cli def test_admin(app, client): + """ + Test Admin Portal + + We use the cli-runner to run the admin-create command. + Then we check if the admin portal is accessible to the newly created superuser. + """ runner = app.test_cli_runner() assert runner.invoke(database_cli, ["admin-create"]).exit_code == 0 |