Skip to content

Commit

Permalink
fix: test update for edx-drf-extensions 8.11.0
Browse files Browse the repository at this point in the history
The method generate_unversioned_payload in
edx-drf-extensions now requires a user.id to
function, so that needed to be added to the mock
user.
  • Loading branch information
robrap committed Oct 18, 2023
1 parent fa4ab4f commit a380f11
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ecommerce/tests/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ def generate_new_user_token(self, username, email, is_staff):
# create a mock user, and not the actual user, because we want to confirm that
# the user is created during JWT authentication
user = Mock()
user.id = 1
user.username = username
user.email = email
user.is_staff = is_staff
Expand Down

0 comments on commit a380f11

Please sign in to comment.