diff --git a/patchwork/models.py b/patchwork/models.py index 9a619bc5..4e5afc4b 100644 --- a/patchwork/models.py +++ b/patchwork/models.py @@ -1059,7 +1059,6 @@ def __str__(self): class Check(models.Model): - """Check for a patch. Checks store the results of any tests executed (or executing) for a diff --git a/patchwork/tests/test_notifications.py b/patchwork/tests/test_notifications.py index 70d25da3..b56c8ccb 100644 --- a/patchwork/tests/test_notifications.py +++ b/patchwork/tests/test_notifications.py @@ -20,7 +20,6 @@ class PatchNotificationModelTest(TestCase): - """Tests for the creation and update of the PatchChangeNotifications.""" def setUp(self): diff --git a/patchwork/tests/views/test_api.py b/patchwork/tests/views/test_api.py index b14d402b..4b6accdb 100644 --- a/patchwork/tests/views/test_api.py +++ b/patchwork/tests/views/test_api.py @@ -12,7 +12,6 @@ class SubmitterCompletionTest(TestCase): - """Validate the 'submitter' autocomplete endpoint.""" def test_name_complete(self): diff --git a/patchwork/tests/views/test_bundles.py b/patchwork/tests/views/test_bundles.py index e5ac1efa..517b4439 100644 --- a/patchwork/tests/views/test_bundles.py +++ b/patchwork/tests/views/test_bundles.py @@ -222,7 +222,6 @@ def setUp(self): class BundlePublicModifyTest(BundleTestBase): - """Ensure that non-owners can't modify bundles""" def setUp(self): @@ -275,7 +274,6 @@ def test_bundle_form_submission(self): class BundlePrivateViewTest(BundleTestBase): - """Ensure that non-owners can't view private bundles""" def setUp(self): @@ -306,7 +304,6 @@ def test_private_bundle(self): @override_settings(ENABLE_REST_API=True) class BundlePrivateViewMboxTest(BundlePrivateViewTest): - """Ensure that non-owners can't view private bundle mboxes""" def setUp(self): @@ -704,7 +701,6 @@ def test_add_to_non_empty_bundle(self): class BundleInitialOrderTest(BundleTestBase): - """When creating bundles from a patch list, ensure that the patches in the bundle are ordered by date""" diff --git a/patchwork/tests/views/test_mail.py b/patchwork/tests/views/test_mail.py index ae0b2c38..798b83f4 100644 --- a/patchwork/tests/views/test_mail.py +++ b/patchwork/tests/views/test_mail.py @@ -175,7 +175,6 @@ def test_valid_hash(self): class OptoutPreexistingTest(OptoutTest): - """Test that a duplicated opt-out behaves the same as the initial one""" def setUp(self): @@ -280,7 +279,6 @@ def test_valid_hash(self): class OptinWithoutOptoutTest(TestCase): - """Test an opt-in with no existing opt-out.""" def test_opt_in_without_optout(self): @@ -294,7 +292,6 @@ def test_opt_in_without_optout(self): class UserProfileOptoutFormTest(TestCase): - """Validate presence of correct optin/optout forms.""" form_re_template = ( diff --git a/patchwork/tests/views/test_utils.py b/patchwork/tests/views/test_utils.py index 61fa0763..91f6b86e 100644 --- a/patchwork/tests/views/test_utils.py +++ b/patchwork/tests/views/test_utils.py @@ -38,11 +38,11 @@ def test_utf8_nbsp_tags(self): """Test that UTF-8 NBSP characters are correctly handled.""" patch = create_patch(content='patch text\n') create_patch_comment( - patch=patch, content='comment\nAcked-by:\u00A0 foo' + patch=patch, content='comment\nAcked-by:\u00a0 foo' ) mbox = utils.patch_to_mbox(patch) - self.assertIn('\u00A0 foo\n', mbox) + self.assertIn('\u00a0 foo\n', mbox) def test_multiple_tags(self): """Test that the mbox view appends tags correct. diff --git a/patchwork/views/mail.py b/patchwork/views/mail.py index 7c864c9c..8709f0ad 100644 --- a/patchwork/views/mail.py +++ b/patchwork/views/mail.py @@ -78,9 +78,9 @@ def _optinout(request, action): form = EmailForm(data=request.POST) if not form.is_valid(): - context[ - 'error' - ] = 'There was an error in the form. Please review and re-submit.' + context['error'] = ( + 'There was an error in the form. Please review and re-submit.' + ) context['form'] = form return render(request, html_template, context)