Loading setup.cfg +1 −1 Original line number Diff line number Diff line Loading @@ -4,7 +4,7 @@ install-script = scripts/rpm-install.sh [flake8] exclude=./django/utils/dictconfig.py,./django/contrib/comments/*,./django/utils/unittest.py,./tests/comment_tests/*,./django/test/_doctest.py,./django/utils/six.py ignore=E124,E125,E127,E128,E226,E241,E251,E302,E501,E203,E231,E261,F401,F403,W601 ignore=E124,E125,E127,E128,E226,E241,E251,E302,E501,E203,E261,F401,F403,W601 [metadata] license-file = LICENSE Loading tests/file_uploads/tests.py +1 −1 Original line number Diff line number Diff line Loading @@ -80,7 +80,7 @@ class FileUploadTests(TestCase): 'Content-Disposition: form-data; name="file"; filename="test.txt"', 'Content-Type: application/octet-stream', 'Content-Transfer-Encoding: base64', '',])) ''])) payload.write(b"\r\n" + base64.b64encode(force_bytes(content)) + b"\r\n") payload.write('--' + client.BOUNDARY + '--\r\n') r = { Loading tests/forms_tests/tests/test_widgets.py +8 −9 Original line number Diff line number Diff line Loading @@ -15,7 +15,6 @@ from django.forms import ( Textarea, TextInput, TimeInput, ) from django.forms.widgets import RadioFieldRenderer from django.utils import formats from django.utils.safestring import mark_safe from django.utils import six from django.utils.translation import activate, deactivate, override Loading tests/generic_views/views.py +3 −3 Original line number Diff line number Diff line Loading @@ -113,7 +113,7 @@ class SpecializedAuthorCreate(generic.CreateView): context_object_name = 'thingy' def get_success_url(self): return reverse('author_detail', args=[self.object.id,]) return reverse('author_detail', args=[self.object.id]) class AuthorCreateRestricted(AuthorCreate): Loading Loading @@ -151,7 +151,7 @@ class SpecializedAuthorUpdate(generic.UpdateView): context_object_name = 'thingy' def get_success_url(self): return reverse('author_detail', args=[self.object.id,]) return reverse('author_detail', args=[self.object.id]) class NaiveAuthorDelete(generic.DeleteView): Loading tests/many_to_one/tests.py +6 −6 Original line number Diff line number Diff line Loading @@ -439,6 +439,6 @@ class ManyToOneTests(TestCase): Article.objects.values_list, 'reporter__notafield') self.assertRaisesMessage(FieldError, expected_message % ', '.join(['EXTRA',] + Article._meta.get_all_field_names()), expected_message % ', '.join(['EXTRA'] + Article._meta.get_all_field_names()), Article.objects.extra(select={'EXTRA': 'EXTRA_SELECT'}).values_list, 'notafield') Loading
setup.cfg +1 −1 Original line number Diff line number Diff line Loading @@ -4,7 +4,7 @@ install-script = scripts/rpm-install.sh [flake8] exclude=./django/utils/dictconfig.py,./django/contrib/comments/*,./django/utils/unittest.py,./tests/comment_tests/*,./django/test/_doctest.py,./django/utils/six.py ignore=E124,E125,E127,E128,E226,E241,E251,E302,E501,E203,E231,E261,F401,F403,W601 ignore=E124,E125,E127,E128,E226,E241,E251,E302,E501,E203,E261,F401,F403,W601 [metadata] license-file = LICENSE Loading
tests/file_uploads/tests.py +1 −1 Original line number Diff line number Diff line Loading @@ -80,7 +80,7 @@ class FileUploadTests(TestCase): 'Content-Disposition: form-data; name="file"; filename="test.txt"', 'Content-Type: application/octet-stream', 'Content-Transfer-Encoding: base64', '',])) ''])) payload.write(b"\r\n" + base64.b64encode(force_bytes(content)) + b"\r\n") payload.write('--' + client.BOUNDARY + '--\r\n') r = { Loading
tests/forms_tests/tests/test_widgets.py +8 −9 Original line number Diff line number Diff line Loading @@ -15,7 +15,6 @@ from django.forms import ( Textarea, TextInput, TimeInput, ) from django.forms.widgets import RadioFieldRenderer from django.utils import formats from django.utils.safestring import mark_safe from django.utils import six from django.utils.translation import activate, deactivate, override Loading
tests/generic_views/views.py +3 −3 Original line number Diff line number Diff line Loading @@ -113,7 +113,7 @@ class SpecializedAuthorCreate(generic.CreateView): context_object_name = 'thingy' def get_success_url(self): return reverse('author_detail', args=[self.object.id,]) return reverse('author_detail', args=[self.object.id]) class AuthorCreateRestricted(AuthorCreate): Loading Loading @@ -151,7 +151,7 @@ class SpecializedAuthorUpdate(generic.UpdateView): context_object_name = 'thingy' def get_success_url(self): return reverse('author_detail', args=[self.object.id,]) return reverse('author_detail', args=[self.object.id]) class NaiveAuthorDelete(generic.DeleteView): Loading
tests/many_to_one/tests.py +6 −6 Original line number Diff line number Diff line Loading @@ -439,6 +439,6 @@ class ManyToOneTests(TestCase): Article.objects.values_list, 'reporter__notafield') self.assertRaisesMessage(FieldError, expected_message % ', '.join(['EXTRA',] + Article._meta.get_all_field_names()), expected_message % ', '.join(['EXTRA'] + Article._meta.get_all_field_names()), Article.objects.extra(select={'EXTRA': 'EXTRA_SELECT'}).values_list, 'notafield')