Fix test auth

This commit is contained in:
Виктор Гладких 2019-09-24 16:06:31 +03:00
parent a9f13ac283
commit 7e5844a24f
4 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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

View File

View 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"]