Exemplo 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)
Exemplo n.º 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)
Exemplo 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
Exemplo 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