Esempio n. 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)
 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)
Esempio n. 3
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
Esempio n. 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