]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
trivial: Prepare for ruff bump
authorStephen Finucane <stephen@that.guru>
Mon, 8 Apr 2024 09:52:17 +0000 (10:52 +0100)
committerStephen Finucane <stephen@that.guru>
Mon, 8 Apr 2024 09:52:17 +0000 (10:52 +0100)
Signed-off-by: Stephen Finucane <stephen@that.guru>
patchwork/models.py
patchwork/tests/test_notifications.py
patchwork/tests/views/test_api.py
patchwork/tests/views/test_bundles.py
patchwork/tests/views/test_mail.py
patchwork/tests/views/test_utils.py
patchwork/views/mail.py

index 9a619bc566b4fb85dbc2255fee25d0209b955a67..4e5afc4bae6e8d844d1499256528561a15a8d736 100644 (file)
@@ -1059,7 +1059,6 @@ class PatchRelation(models.Model):
 
 
 class Check(models.Model):
-
     """Check for a patch.
 
     Checks store the results of any tests executed (or executing) for a
index 70d25da36a399650b9b0a288e1a391898b1d3e24..b56c8ccbe85e9974e906d12a3b54e5e895d118bf 100644 (file)
@@ -20,7 +20,6 @@ from patchwork.tests.utils import create_state
 
 
 class PatchNotificationModelTest(TestCase):
-
     """Tests for the creation and update of the PatchChangeNotifications."""
 
     def setUp(self):
index b14d402b6bfa9c433ec815d0de4998cec6a25861..4b6accdb1483482e604858323b3646d0fcf14457 100644 (file)
@@ -12,7 +12,6 @@ from patchwork.tests.utils import create_person
 
 
 class SubmitterCompletionTest(TestCase):
-
     """Validate the 'submitter' autocomplete endpoint."""
 
     def test_name_complete(self):
index e5ac1efad82426c9d1b2c6e4d974e0f5c7d2a86d..517b4439b4e5b3891665ec15889c456f6631e22f 100644 (file)
@@ -222,7 +222,6 @@ class BundlePublicViewMboxTest(BundlePublicViewTest):
 
 
 class BundlePublicModifyTest(BundleTestBase):
-
     """Ensure that non-owners can't modify bundles"""
 
     def setUp(self):
@@ -275,7 +274,6 @@ class BundlePublicModifyTest(BundleTestBase):
 
 
 class BundlePrivateViewTest(BundleTestBase):
-
     """Ensure that non-owners can't view private bundles"""
 
     def setUp(self):
@@ -306,7 +304,6 @@ class BundlePrivateViewTest(BundleTestBase):
 
 @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 @@ class BundleAddFromPatchTest(BundleTestBase):
 
 
 class BundleInitialOrderTest(BundleTestBase):
-
     """When creating bundles from a patch list, ensure that the patches in the
     bundle are ordered by date"""
 
index ae0b2c38853b2a1c9cc822b3e542e25002684053..798b83f486349a37eea1a274ee233fdb6654259b 100644 (file)
@@ -175,7 +175,6 @@ class OptoutTest(TestCase):
 
 
 class OptoutPreexistingTest(OptoutTest):
-
     """Test that a duplicated opt-out behaves the same as the initial one"""
 
     def setUp(self):
@@ -280,7 +279,6 @@ class OptinTest(TestCase):
 
 
 class OptinWithoutOptoutTest(TestCase):
-
     """Test an opt-in with no existing opt-out."""
 
     def test_opt_in_without_optout(self):
@@ -294,7 +292,6 @@ class OptinWithoutOptoutTest(TestCase):
 
 
 class UserProfileOptoutFormTest(TestCase):
-
     """Validate presence of correct optin/optout forms."""
 
     form_re_template = (
index 61fa0763342c8e5d015a8022bb1ddadd70ee849f..91f6b86e513f7eebfda9a1b0da0ef8e0fd855d09 100644 (file)
@@ -38,11 +38,11 @@ class MboxPatchResponseTest(TestCase):
         """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.
index 7c864c9cecb193c4a4094b12715ed4a539b3f186..8709f0ad071313b1bccaa8c4a40ce1238ba49744 100644 (file)
@@ -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)