예제 #1
0
 def setUp(self):
     """
     Changes the Django environment so we can run tests against our test apps.
     """
     if hasattr(self, 'installed_apps'):
         hacks.store_app_cache_state()
         hacks.set_installed_apps(self.installed_apps)
예제 #2
0
 def setUp(self):
     """
     Changes the Django environment so we can run tests against our test apps.
     """
     if hasattr(self, 'installed_apps'):
         hacks.store_app_cache_state()
         hacks.set_installed_apps(self.installed_apps)
예제 #3
0
파일: __init__.py 프로젝트: 15580056814/hue
 def setUp(self):
     """
     Changes the Django environment so we can run tests against our test apps.
     """
     if hasattr(self, 'installed_apps'):
         hacks.store_app_cache_state()
         hacks.set_installed_apps(self.installed_apps)
         # Make sure dependencies are calculated for new apps
         Migrations._dependencies_done = False
예제 #4
0
 def setUp(self):
     """
     Changes the Django environment so we can run tests against our test apps.
     """
     if hasattr(self, 'installed_apps'):
         hacks.store_app_cache_state()
         hacks.set_installed_apps(self.installed_apps)
         # Make sure dependencies are calculated for new apps
         Migrations._dependencies_done = False