Fix test auth
This commit is contained in:
parent
a9f13ac283
commit
7e5844a24f
|
|
@ -1,6 +1,6 @@
|
|||
from rest_framework.test import APITestCase
|
||||
from rest_framework import status
|
||||
from authorization.tests.tests import get_tokens_for_user
|
||||
from authorization.tests.tests_authorization import get_tokens_for_user
|
||||
from http.cookies import SimpleCookie
|
||||
from account.models import User
|
||||
from django.urls import reverse
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
from rest_framework.test import APITestCase
|
||||
from rest_framework import status
|
||||
from authorization.tests.tests import get_tokens_for_user
|
||||
from authorization.tests.tests_authorization import get_tokens_for_user
|
||||
from django.urls import reverse
|
||||
from account.models import User
|
||||
|
||||
|
|
|
|||
0
apps/authorization/tests/__init__.py
Normal file
0
apps/authorization/tests/__init__.py
Normal file
|
|
@ -22,6 +22,7 @@ def get_tokens_for_user(
|
|||
class AuthorizationTests(APITestCase):
|
||||
|
||||
def setUp(self):
|
||||
print("Auth!")
|
||||
data = get_tokens_for_user()
|
||||
self.username = data["username"]
|
||||
self.password = data["password"]
|
||||
Loading…
Reference in New Issue
Block a user