This commit is contained in:
virusdefender
2017-01-23 16:48:04 +08:00
parent cfde5b93e5
commit d9fad97e35
27 changed files with 46 additions and 52 deletions

View File

@@ -1,7 +1,6 @@
import json
from django.utils import timezone
from rest_framework import serializers

View File

@@ -1,13 +1,12 @@
import functools
import json
import logging
import functools
from django.http import HttpResponse, QueryDict
from django.utils.decorators import method_decorator
from django.views.decorators.csrf import csrf_exempt
from django.views.generic import View
logger = logging.getLogger(__name__)

View File

@@ -1,9 +1,8 @@
from django.test.testcases import TestCase
from django.core.urlresolvers import reverse
from django.test.testcases import TestCase
from rest_framework.test import APIClient
from account.models import User, AdminType
from account.models import AdminType, User
class APITestCase(TestCase):