diff --git a/.gitignore b/.gitignore index e9222c2da..41768084c 100644 --- a/.gitignore +++ b/.gitignore @@ -11,6 +11,7 @@ /*.egg-info/ /env/ MANIFEST +coverage.* !.gitignore !.travis.yml diff --git a/tests/browsable_api/test_browsable_nested_api.py b/tests/browsable_api/test_browsable_nested_api.py index dbbd11eea..9e5538efc 100644 --- a/tests/browsable_api/test_browsable_nested_api.py +++ b/tests/browsable_api/test_browsable_nested_api.py @@ -14,13 +14,13 @@ class NestedSerializer(serializers.Serializer): two = serializers.IntegerField(max_value=10) -class TestNestedSerializerSerializer(serializers.Serializer): +class NestedSerializerTestSerializer(serializers.Serializer): nested = NestedSerializer() class NestedSerializersView(ListCreateAPIView): renderer_classes = (BrowsableAPIRenderer, ) - serializer_class = TestNestedSerializerSerializer + serializer_class = NestedSerializerTestSerializer queryset = [{'nested': {'one': 1, 'two': 2}}] diff --git a/tests/test_model_serializer.py b/tests/test_model_serializer.py index 0179abc44..185130778 100644 --- a/tests/test_model_serializer.py +++ b/tests/test_model_serializer.py @@ -784,7 +784,7 @@ class TestBulkCreate(TestCase): assert serializer.data == data -class TestMetaClassModel(models.Model): +class MetaClassTestModel(models.Model): text = models.CharField(max_length=100) @@ -792,7 +792,7 @@ class TestSerializerMetaClass(TestCase): def test_meta_class_fields_option(self): class ExampleSerializer(serializers.ModelSerializer): class Meta: - model = TestMetaClassModel + model = MetaClassTestModel fields = 'text' with self.assertRaises(TypeError) as result: @@ -806,7 +806,7 @@ class TestSerializerMetaClass(TestCase): def test_meta_class_exclude_option(self): class ExampleSerializer(serializers.ModelSerializer): class Meta: - model = TestMetaClassModel + model = MetaClassTestModel exclude = 'text' with self.assertRaises(TypeError) as result: @@ -820,7 +820,7 @@ class TestSerializerMetaClass(TestCase): def test_meta_class_fields_and_exclude_options(self): class ExampleSerializer(serializers.ModelSerializer): class Meta: - model = TestMetaClassModel + model = MetaClassTestModel fields = ('text',) exclude = ('text',)