Fix various pep8/flake8/pylint errors

This commit is contained in:
Swen Kooij
2017-05-25 19:40:03 +03:00
parent 5a4f449363
commit 92a53bc3d7
11 changed files with 39 additions and 166 deletions

View File

@@ -3,7 +3,6 @@ from django.db.migrations.executor import MigrationExecutor
from django.contrib.postgres.operations import HStoreExtension
from localized_fields.models import LocalizedModel
from localized_fields.mixins import AtomicSlugRetryMixin
def define_fake_model(name='TestModel', fields=None):

View File

@@ -3,7 +3,6 @@ import json
from django.conf import settings
from django.db.utils import IntegrityError
from django.test import TestCase
from django.utils import translation
from localized_fields.fields import LocalizedField
from localized_fields.forms import LocalizedFieldForm

View File

@@ -34,7 +34,6 @@ class LocalizedModelTestCase(TestCase):
assert isinstance(obj.title, LocalizedValue)
@classmethod
def test_model_init_kwargs(cls):
"""Tests whether all :see:LocalizedField

View File

@@ -1,5 +1,3 @@
import json
from django.conf import settings
from django.test import TestCase
from django.utils import translation
@@ -164,4 +162,3 @@ class LocalizedValueTestCase(TestCase):
value = LocalizedValue('beer')
assert value.get(settings.LANGUAGE_CODE) == 'beer'