mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-06-19 04:53:20 +03:00
Cleaning up imports and whitespace
This commit is contained in:
parent
fdf9a26740
commit
c36ff4e052
|
@ -162,8 +162,8 @@ class NullableOneToOneSource(RESTFrameworkModel):
|
|||
target = models.OneToOneField(OneToOneTarget, null=True, blank=True,
|
||||
related_name='nullable_source')
|
||||
|
||||
|
||||
# Serializer used to test BasicModel
|
||||
class BasicModelSerializer(serializers.ModelSerializer):
|
||||
class Meta:
|
||||
model = BasicModel
|
||||
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
from __future__ import unicode_literals
|
||||
from django.test import TestCase
|
||||
from django.test.client import RequestFactory
|
||||
from rest_framework import status
|
||||
from rest_framework.response import Response
|
||||
from rest_framework import viewsets
|
||||
from rest_framework.decorators import link, action
|
||||
from rest_framework.routers import SimpleRouter
|
||||
import copy
|
||||
|
||||
factory = RequestFactory()
|
||||
|
||||
|
@ -51,5 +49,3 @@ class TestSimpleRouter(TestCase):
|
|||
else:
|
||||
method_map = 'get'
|
||||
self.assertEqual(route.mapping[method_map], endpoint)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user