Skip to content

Commit

Permalink
Fixing user_views_tests
Browse files Browse the repository at this point in the history
- Added DB annottion of pytest due to a conflit occurs after adding the
  sign in with google feature
  • Loading branch information
maayanhd committed May 11, 2021
1 parent 734a7c6 commit a87ee9d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions users/tests/test_users_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,13 @@ def test_profile_anonymous_GET(self, client):
response = client.get(reverse('profile'))
assert response.status_code == 302

@pytest.mark.django_db
def test_login_GET(self, client):
response = client.get(reverse('login'))
assert response.status_code == 200
assertTemplateUsed(response, 'users/login.html')

@pytest.mark.django_db
def test_logout_GET(self, client):
response = client.get(reverse('logout'))
assert response.status_code == 200
Expand Down

0 comments on commit a87ee9d

Please sign in to comment.