Skip to content

Commit

Permalink
Add docstrings for helper functions
Browse files Browse the repository at this point in the history
  • Loading branch information
OlenaYefymenko committed May 1, 2024
1 parent f7c4829 commit a1f788c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ def setUpTestData(cls):
}

def login_user_helper(self):
"""ADD."""
"""Authenticate the test user."""
self.client.force_login(self.user)

def unauthorized_user_helper(self, url):
"""ADD."""
"""Check if unauthorized user is redirected to the login page."""
http_response = self.client.get(url)
self.assertRedirects(
http_response, f'/accounts/login/?next={url}',
Expand Down

0 comments on commit a1f788c

Please sign in to comment.