Skip to content

Commit e0fab25

Browse files
committed
Add unittest
1 parent c1487eb commit e0fab25

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Abhishek Patel
1111
Adam Johnson
1212
Adam Zahradník
1313
Adheeth P Praveen
14+
Aibek Prenov
1415
Alan Crosswell
1516
Alan Rominger
1617
Alejandro Mantecon Guillen

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2222
* #1584 Fix IDP container in docker compose environment could not find templates and static files.
2323
* #1562 Fix: Handle AttributeError in IntrospectTokenView
2424
* #1583 Fix: Missing pt_BR translations
25+
* #1597 Fix: TypeError at /s/auth/o/token/
2526
<!--
2627
### Security
2728
-->

tests/test_oauth2_validators.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ def always_invalid_token():
6060
class TestOAuth2Validator(TransactionTestCase):
6161
def setUp(self):
6262
self.user = UserModel.objects.create_user("user", "[email protected]", "123456")
63+
self.user.last_login = None
64+
self.user.save()
6365
self.request = mock.MagicMock(wraps=Request)
6466
self.request.user = self.user
6567
self.request.grant_type = "not client"

0 commit comments

Comments
 (0)