Loading django/contrib/auth/tests/test_hashers.py +4 −0 Original line number Diff line number Diff line Loading @@ -222,6 +222,7 @@ class TestUtilsHashPass(unittest.TestCase): for algo in ('sha1', 'md5'): encoded = make_password('lètmein', hasher=algo) state = {'upgraded': False} def setter(password): state['upgraded'] = True self.assertTrue(check_password('lètmein', encoded, setter)) Loading @@ -230,6 +231,7 @@ class TestUtilsHashPass(unittest.TestCase): def test_no_upgrade(self): encoded = make_password('lètmein') state = {'upgraded': False} def setter(): state['upgraded'] = True self.assertFalse(check_password('WRONG', encoded, setter)) Loading @@ -240,6 +242,7 @@ class TestUtilsHashPass(unittest.TestCase): for algo in ('sha1', 'md5'): encoded = make_password('lètmein', hasher=algo) state = {'upgraded': False} def setter(): state['upgraded'] = True self.assertFalse(check_password('WRONG', encoded, setter)) Loading @@ -259,6 +262,7 @@ class TestUtilsHashPass(unittest.TestCase): self.assertEqual(iterations, '1') state = {'upgraded': False} def setter(password): state['upgraded'] = True Loading django/contrib/auth/tests/test_tokens.py +1 −0 Original line number Diff line number Diff line Loading @@ -43,6 +43,7 @@ class TokenGeneratorTest(TestCase): class Mocked(PasswordResetTokenGenerator): def __init__(self, today): self._today_val = today def _today(self): return self._today_val Loading django/contrib/formtools/tests/wizard/wizardtests/tests.py +2 −0 Original line number Diff line number Diff line Loading @@ -418,8 +418,10 @@ class WizardInlineFormSetTests(TestCase): def test_set_instance(self): # Regression test for #21259 poet = self.poet class InlineFormSetWizard(CookieWizardView): instance = None def get_form_instance(self, step): if self.instance is None: self.instance = poet Loading django/contrib/gis/admin/widgets.py +1 −0 Original line number Diff line number Diff line Loading @@ -87,6 +87,7 @@ class OpenLayersWidget(Textarea): # JavaScript construction utilities for the Bounds and Projection. def ol_bounds(extent): return 'new OpenLayers.Bounds(%s)' % str(extent) def ol_projection(srid): return 'new OpenLayers.Projection("EPSG:%s")' % srid Loading django/contrib/gis/db/backends/oracle/models.py +1 −0 Original line number Diff line number Diff line Loading @@ -18,6 +18,7 @@ class GeometryColumns(models.Model): column_name = models.CharField(max_length=1024) srid = models.IntegerField(primary_key=True) # TODO: Add support for `diminfo` column (type MDSYS.SDO_DIM_ARRAY). class Meta: db_table = 'USER_SDO_GEOM_METADATA' managed = False Loading Loading
django/contrib/auth/tests/test_hashers.py +4 −0 Original line number Diff line number Diff line Loading @@ -222,6 +222,7 @@ class TestUtilsHashPass(unittest.TestCase): for algo in ('sha1', 'md5'): encoded = make_password('lètmein', hasher=algo) state = {'upgraded': False} def setter(password): state['upgraded'] = True self.assertTrue(check_password('lètmein', encoded, setter)) Loading @@ -230,6 +231,7 @@ class TestUtilsHashPass(unittest.TestCase): def test_no_upgrade(self): encoded = make_password('lètmein') state = {'upgraded': False} def setter(): state['upgraded'] = True self.assertFalse(check_password('WRONG', encoded, setter)) Loading @@ -240,6 +242,7 @@ class TestUtilsHashPass(unittest.TestCase): for algo in ('sha1', 'md5'): encoded = make_password('lètmein', hasher=algo) state = {'upgraded': False} def setter(): state['upgraded'] = True self.assertFalse(check_password('WRONG', encoded, setter)) Loading @@ -259,6 +262,7 @@ class TestUtilsHashPass(unittest.TestCase): self.assertEqual(iterations, '1') state = {'upgraded': False} def setter(password): state['upgraded'] = True Loading
django/contrib/auth/tests/test_tokens.py +1 −0 Original line number Diff line number Diff line Loading @@ -43,6 +43,7 @@ class TokenGeneratorTest(TestCase): class Mocked(PasswordResetTokenGenerator): def __init__(self, today): self._today_val = today def _today(self): return self._today_val Loading
django/contrib/formtools/tests/wizard/wizardtests/tests.py +2 −0 Original line number Diff line number Diff line Loading @@ -418,8 +418,10 @@ class WizardInlineFormSetTests(TestCase): def test_set_instance(self): # Regression test for #21259 poet = self.poet class InlineFormSetWizard(CookieWizardView): instance = None def get_form_instance(self, step): if self.instance is None: self.instance = poet Loading
django/contrib/gis/admin/widgets.py +1 −0 Original line number Diff line number Diff line Loading @@ -87,6 +87,7 @@ class OpenLayersWidget(Textarea): # JavaScript construction utilities for the Bounds and Projection. def ol_bounds(extent): return 'new OpenLayers.Bounds(%s)' % str(extent) def ol_projection(srid): return 'new OpenLayers.Projection("EPSG:%s")' % srid Loading
django/contrib/gis/db/backends/oracle/models.py +1 −0 Original line number Diff line number Diff line Loading @@ -18,6 +18,7 @@ class GeometryColumns(models.Model): column_name = models.CharField(max_length=1024) srid = models.IntegerField(primary_key=True) # TODO: Add support for `diminfo` column (type MDSYS.SDO_DIM_ARRAY). class Meta: db_table = 'USER_SDO_GEOM_METADATA' managed = False Loading