diff options
author | Navan Chauhan <navanchauhan@gmail.com> | 2021-06-07 13:52:20 +0530 |
---|---|---|
committer | Navan Chauhan <navanchauhan@gmail.com> | 2021-06-07 13:52:20 +0530 |
commit | 359813517e3382c527125fe673fa89f0fd0742c0 (patch) | |
tree | 5010e2427cf0d19e7365e44fac40612375c135c9 /app/tests/test_admin.py | |
parent | b752efffe410c9cc9cd53f8c50a5fb9f75069e93 (diff) |
added docstrings
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 |