class Check(models.Model):
-
"""Check for a patch.
Checks store the results of any tests executed (or executing) for a
class PatchNotificationModelTest(TestCase):
-
"""Tests for the creation and update of the PatchChangeNotifications."""
def setUp(self):
class SubmitterCompletionTest(TestCase):
-
"""Validate the 'submitter' autocomplete endpoint."""
def test_name_complete(self):
class BundlePublicModifyTest(BundleTestBase):
-
"""Ensure that non-owners can't modify bundles"""
def setUp(self):
class BundlePrivateViewTest(BundleTestBase):
-
"""Ensure that non-owners can't view private bundles"""
def setUp(self):
@override_settings(ENABLE_REST_API=True)
class BundlePrivateViewMboxTest(BundlePrivateViewTest):
-
"""Ensure that non-owners can't view private bundle mboxes"""
def setUp(self):
class BundleInitialOrderTest(BundleTestBase):
-
"""When creating bundles from a patch list, ensure that the patches in the
bundle are ordered by date"""
class OptoutPreexistingTest(OptoutTest):
-
"""Test that a duplicated opt-out behaves the same as the initial one"""
def setUp(self):
class OptinWithoutOptoutTest(TestCase):
-
"""Test an opt-in with no existing opt-out."""
def test_opt_in_without_optout(self):
class UserProfileOptoutFormTest(TestCase):
-
"""Validate presence of correct optin/optout forms."""
form_re_template = (
"""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.
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)