mirror of
https://github.com/ansible/awx.git
synced 2026-02-16 10:40:01 -03:30
Fix null values on Token modified field.
This commit is contained in:
@@ -126,7 +126,7 @@ def test_oauth_token_create(oauth_application, get, post, admin):
|
||||
reverse('api:o_auth2_application_token_list', kwargs={'pk': oauth_application.pk}),
|
||||
{'scope': 'read'}, admin, expect=201
|
||||
)
|
||||
assert 'modified' in response.data
|
||||
assert 'modified' in response.data and response.data['modified'] is not None
|
||||
assert 'updated' not in response.data
|
||||
token = AccessToken.objects.get(token=response.data['token'])
|
||||
refresh_token = RefreshToken.objects.get(token=response.data['refresh_token'])
|
||||
|
||||
Reference in New Issue
Block a user