Skip to content

Commit

Permalink
added print to check response data for debug
Browse files Browse the repository at this point in the history
  • Loading branch information
taka-rl committed Oct 15, 2024
1 parent 2230d94 commit 2293715
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ def test_change_user_role(super_admin_client):

# Super admin changes the role of the new user
response = super_admin_client.post(f'/admin/change-role/{user.id}')

print(response.data) # Add logging for debugging

assert response.status_code == 302

# Verify the role has been changed
Expand All @@ -61,6 +64,9 @@ def test_delete_user(super_admin_client):

# Super admin changes the role of the new user
response = super_admin_client.post(f'/admin/delete-user/{user.id}')

print(response.data) # Add logging for debugging

assert response.status_code == 302

# Verify the user exists in the database
Expand Down

0 comments on commit 2293715

Please sign in to comment.