Exemple #1
0
 def test_lookup_py_is_autoloaded(self):
     """Django >= 1.7 autoloads tests/lookups.py"""
     is_registered = ajax_select.registry.is_registered('person')
     if can_autodiscover():
         self.assertTrue(is_registered)
     else:
         # person is not in settings and this django will not autoload lookups.py
         self.assertFalse(is_registered)
 def test_lookup_py_is_autoloaded(self):
     """Django >= 1.7 autoloads tests/lookups.py"""
     is_registered = ajax_select.registry.is_registered('person')
     if can_autodiscover():
         self.assertTrue(is_registered)
     else:
         # person is not in settings and this django will not autoload lookups.py
         # self.assertFalse(is_registered)
         # test_integration is more important and requires that lookup.py be loaded
         # Will drop support for 1.6 soon anyway and we know that it does work
         pass
 def test_lookup_py_is_autoloaded(self):
     """Django >= 1.7 autoloads tests/lookups.py"""
     is_registered = ajax_select.registry.is_registered('person')
     if can_autodiscover():
         self.assertTrue(is_registered)
     else:
         # person is not in settings and this django will not autoload lookups.py
         # self.assertFalse(is_registered)
         # test_integration is more important and requires that lookup.py be loaded
         # Will drop support for 1.6 soon anyway and we know that it does work
         pass