API: Upload new version of an extension #138
@ -114,4 +114,5 @@ class VersionUploadAPITest(APITestCase):
|
|||||||
HTTP_AUTHORIZATION=f'Bearer {self.token_key}',
|
HTTP_AUTHORIZATION=f'Bearer {self.token_key}',
|
||||||
)
|
)
|
||||||
self.assertEqual(response.status_code, status.HTTP_201_CREATED)
|
self.assertEqual(response.status_code, status.HTTP_201_CREATED)
|
||||||
|
self.token.refresh_from_db()
|
||||||
self.assertIsNotNone(self.token.date_last_access)
|
self.assertIsNotNone(self.token.date_last_access)
|
||||||
|
Loading…
Reference in New Issue
Block a user