Skip to content

Commit

Permalink
test: rename tests and fix test issue
Browse files Browse the repository at this point in the history
  • Loading branch information
GlugovGrGlib committed Feb 22, 2024
1 parent 043f344 commit dda5ddf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,8 @@ def test_get_requested_user(self, user_role, username, expected_username, mock_g

self.request.user = request_user

if expected_username:
mock_user = UserFactory(username=expected_username)
if expected_username == "student_user":
mock_user = self.student_user
mock_get.return_value = mock_user
else:
mock_get.side_effect = User.DoesNotExist()
Expand Down

0 comments on commit dda5ddf

Please sign in to comment.