From 359813517e3382c527125fe673fa89f0fd0742c0 Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Mon, 7 Jun 2021 13:52:20 +0530 Subject: added docstrings --- app/tests/test_admin.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'app/tests/test_admin.py') 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 -- cgit v1.2.3