Skip to content

Commit

Permalink
Use username instead of users_name
Browse files Browse the repository at this point in the history
  • Loading branch information
Pasarus committed Jan 28, 2025
1 parent 023b352 commit 2a8427b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_tokens.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def test_refresh_token_with_invalid_jwt(mock_decode):
def test_generate_access_token(mock_datetime):
user = Mock()
user.user_number = 12345
user.users_name = "Mr Cool"
user.username = "Mr Cool"
user.role = Role.USER
user.role = Role.USER
fixed_time = datetime(2000, 12, 12, 12, 0, tzinfo=UTC)
Expand Down

0 comments on commit 2a8427b

Please sign in to comment.