remove import UserSerializer in tesf_drf_views.py

This commit is contained in:
Pilhwan Kim 2020-04-29 08:54:32 +09:00
parent 5a9648fa90
commit 29fea6efa3

View File

@ -1,7 +1,6 @@
import pytest
from django.test import RequestFactory
from {{ cookiecutter.project_slug }}.users.api.serializers import UserSerializer
from {{ cookiecutter.project_slug }}.users.api.views import UserViewSet
from {{ cookiecutter.project_slug }}.users.models import User
@ -28,8 +27,8 @@ class TestUserViewSet:
response = view.me(request)
assert response.data == {
"username": user.username,
"email": user.email,
"name": user.name,
"username": user.username,
"email": user.email,
"name": user.name,
"url": f"/api/users/{user.username}/",
}