Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:16.0:FactoryCandidates
python-django-oauth-toolkit
stop-using-pk-to-reference-tokens.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File stop-using-pk-to-reference-tokens.patch of Package python-django-oauth-toolkit
Index: django-oauth-toolkit-1.7.0/tests/test_models.py =================================================================== --- django-oauth-toolkit-1.7.0.orig/tests/test_models.py +++ django-oauth-toolkit-1.7.0/tests/test_models.py @@ -322,7 +322,7 @@ class TestClearExpired(BaseTestModels): RefreshToken( token=f"expired AT's refresh token {i}", application=app, - access_token=expired_access_tokens[i].pk, + access_token=expired_access_tokens[i], user=self.user, ) for i in range(0, len(expired_access_tokens) // 2, 2) @@ -331,7 +331,7 @@ class TestClearExpired(BaseTestModels): RefreshToken( token=f"current AT's refresh token {i}", application=app, - access_token=current_access_tokens[i].pk, + access_token=current_access_tokens[i], user=self.user, ) for i in range(1, len(current_access_tokens) // 2, 2)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor