Skip to content

Commit 6fd4ac0

Browse files
committed
Fix test
1 parent 8fe0821 commit 6fd4ac0

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
## 2.2
22

33
* Added Support for AbstractBaseUser that has username field other than username, thanks to @ganiyevuz for reporting and suggesting the fix.
4+
* Allowed username to be non-string e.g phone number or telegram id, thanks to @ganiyevuz for reporting and suggesting the fix.
45

56
## 2.1
67

example/test_app/tests/test_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,8 @@ def test_authenticate_flow_with_session(self):
145145
self.assertEqual(response.status_code, 200)
146146
result = response.json()
147147
self.assertEqual(result['username'], 'test')
148-
# self.assertEqual(result['token_type'], 'session')
149-
self.assertEqual(result['token_type'], 'jwt')
148+
self.assertEqual(result['token_type'], 'session')
149+
# self.assertEqual(result['token_type'], 'jwt')
150150

151151
def test_authenticate_options_with_username(self):
152152
device = self._register_key()

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
setup(
66
name='django-passkeys',
7-
version='2.2b1',
7+
version='2.2b2',
88
description='A Django Authentication Backend for Passkeys',
99
long_description=open("README.md").read(),
1010
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)