コード例 #1
0
ファイル: __init__.py プロジェクト: apopov90/test-task
 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