Skip to content

Commit

Permalink
added test_about.py
Browse files Browse the repository at this point in the history
added code to check login with admin-dashboard
  • Loading branch information
taka-rl committed Oct 16, 2024
1 parent 8006027 commit 83c0972
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,5 @@ def super_admin_client(client):

# Make sure if login was successful
assert login_response.status_code == 200
assert b"admin-dashboard" in login_response.data
return client
4 changes: 4 additions & 0 deletions tests/test_about.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
def test_about_access(client):
response = client.get('/about')
assert response.status_code == 200
assert b"About Me" in response.data

0 comments on commit 83c0972

Please sign in to comment.