Ticket #21287: E123.diff

File E123.diff, 3.2 KB (added by timo, 23 months ago)
  • tests/i18n/tests.py

    diff --git a/tests/i18n/tests.py b/tests/i18n/tests.py
    index 6d8910b..7377666 100644
    a b class FormattingTests(TransRealMixin, TestCase): 
    788788                'date_added': datetime.datetime(2009, 12, 31, 6, 0, 0),
    789789                'cents_paid': decimal.Decimal('59.47'),
    790790                'products_delivered': 12000,
    791                 })
     791            })
    792792            context = Context({'form': form})
    793793            self.assertTrue(form.is_valid())
    794794
  • tests/runtests.py

    diff --git a/tests/runtests.py b/tests/runtests.py
    index da6c1c4..a1c2601 100755
    a b def setup(verbosity, test_labels): 
    168168            match = lambda label: (
    169169                module_label == label or  # exact match
    170170                module_label.startswith(label + '.')  # ancestor match
    171                 )
     171            )
    172172
    173173            module_found_in_labels = any(match(l) for l in test_labels_set)
    174174
  • tests/signing/tests.py

    diff --git a/tests/signing/tests.py b/tests/signing/tests.py
    index 5c5c2b1..8b470b9 100644
    a b class TestSigner(TestCase): 
    3333            signer.signature('hello'),
    3434                signing.base64_hmac('extra-salt' + 'signer',
    3535                'hello', 'predictable-secret').decode()
    36             )
     36        )
    3737        self.assertNotEqual(
    3838            signing.Signer('predictable-secret', salt='one').signature('hello'),
    3939            signing.Signer('predictable-secret', salt='two').signature('hello'))
  • tests/validation/models.py

    diff --git a/tests/validation/models.py b/tests/validation/models.py
    index 958740d..ee5bcfc 100644
    a b class UniqueForDateModel(models.Model): 
    5050    name = models.CharField(max_length=100)
    5151
    5252class CustomMessagesModel(models.Model):
    53     other  = models.IntegerField(blank=True, null=True)
     53    other = models.IntegerField(blank=True, null=True)
    5454    number = models.IntegerField(db_column='number_val',
    5555        error_messages={'null': 'NULL', 'not42': 'AAARGH', 'not_equal': '%s != me'},
    5656        validators=[validate_answer_to_universe]
  • tests/validation/test_unique.py

    diff --git a/tests/validation/test_unique.py b/tests/validation/test_unique.py
    index 79b197a..0aa587f 100644
    a b class GetUniqueCheckTests(unittest.TestCase): 
    4343            [(UniqueForDateModel, 'date', 'count', 'start_date'),
    4444             (UniqueForDateModel, 'year', 'count', 'end_date'),
    4545             (UniqueForDateModel, 'month', 'order', 'end_date')]
    46             ), m._get_unique_checks()
    47         )
     46        ), m._get_unique_checks())
    4847
    4948    def test_unique_for_date_exclusion(self):
    5049        m = UniqueForDateModel()
    class GetUniqueCheckTests(unittest.TestCase): 
    5251            [(UniqueForDateModel, ('id',))],
    5352            [(UniqueForDateModel, 'year', 'count', 'end_date'),
    5453             (UniqueForDateModel, 'month', 'order', 'end_date')]
    55             ), m._get_unique_checks(exclude='start_date')
    56         )
     54        ), m._get_unique_checks(exclude='start_date'))
    5755
    5856class PerformUniqueChecksTest(TestCase):
    5957    def test_primary_key_unique_check_not_performed_when_adding_and_pk_not_specified(self):
Back to Top