File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ def is_expired(self):
159
159
"""
160
160
if not self .expires :
161
161
return True
162
-
162
+
163
163
return timezone .now () >= self .expires
164
164
165
165
def redirect_uri_allowed (self , uri ):
@@ -203,7 +203,7 @@ def is_expired(self):
203
203
"""
204
204
if not self .expires :
205
205
return True
206
-
206
+
207
207
return timezone .now () >= self .expires
208
208
209
209
def allow_scopes (self , scopes ):
Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ class TestGrantModel(TestCase):
139
139
def test_str (self ):
140
140
grant = Grant (code = "test_code" )
141
141
self .assertEqual ("%s" % grant , grant .code )
142
-
142
+
143
143
def test_expires_can_be_none (self ):
144
144
grant = Grant (code = "test_code" )
145
145
self .assertIsNone (grant .expires )
@@ -164,7 +164,7 @@ def test_user_can_be_none(self):
164
164
)
165
165
access_token = AccessToken .objects .create (token = "test_token" , application = app , expires = timezone .now ())
166
166
self .assertIsNone (access_token .user )
167
-
167
+
168
168
def test_expires_can_be_none (self ):
169
169
access_token = AccessToken (token = "test_token" )
170
170
self .assertIsNone (access_token .expires )
You can’t perform that action at this time.
0 commit comments