aboutsummaryrefslogtreecommitdiff
path: root/app/tests/test_admin.py
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2021-06-06 15:44:45 +0530
committerGitHub <noreply@github.com>2021-06-06 15:44:45 +0530
commit62a5ca363415b0f6f98785b6c3522a71fc895a72 (patch)
tree6fb829110658369321bab897707132f76f9b1b2c /app/tests/test_admin.py
parent57207efe38174666d40964b74856537c6f5314ab (diff)
parent6595d53212eaa4b9319da7196f5e2286d30eb462 (diff)
Merge pull request #1 from navanchauhan/deepsource-transform-10f49d7d
Format code with black
Diffstat (limited to 'app/tests/test_admin.py')
-rw-r--r--app/tests/test_admin.py23
1 files changed, 14 insertions, 9 deletions
diff --git a/app/tests/test_admin.py b/app/tests/test_admin.py
index 1a5df07..ae20f2b 100644
--- a/app/tests/test_admin.py
+++ b/app/tests/test_admin.py
@@ -1,14 +1,19 @@
from app import database_cli
+
def test_admin(app, client):
- runner = app.test_cli_runner()
- assert runner.invoke(database_cli,["admin-create"]).exit_code == 0
+ runner = app.test_cli_runner()
+ assert runner.invoke(database_cli, ["admin-create"]).exit_code == 0
- res = client.post("/signin",data=dict(
- email=app.config["ADMIN_EMAIL"],
- password=app.config["ADMIN_PASSWORD"]),follow_redirects=True)
+ res = client.post(
+ "/signin",
+ data=dict(
+ email=app.config["ADMIN_EMAIL"], password=app.config["ADMIN_PASSWORD"]
+ ),
+ follow_redirects=True,
+ )
- print(res.data)
- assert b"Supersu" in res.data
- res = client.get("/admin/user/")
- assert res.status_code == 200 \ No newline at end of file
+ print(res.data)
+ assert b"Supersu" in res.data
+ res = client.get("/admin/user/")
+ assert res.status_code == 200