Пример #1
0
 def setUp(self):
     view = QuestionnaireView(url_namespace='sample')
     self.request = RequestFactory().get('/en/sample/view/app_1')
     self.request.user = create_new_user()
     self.request.session = dict()
     self.request._messages = MagicMock()
     self.view = self.setup_view(view, self.request, identifier='sample_1')
     get_cached_configuration.cache_clear()
Пример #2
0
 def setUp(self):
     view = QuestionnaireView(url_namespace='sample')
     self.request = RequestFactory().get('/en/sample/view/app_1')
     self.request.user = create_new_user()
     self.request.session = dict()
     self.request._messages = MagicMock()
     self.view = self.setup_view(view, self.request, identifier='sample_1')
     get_cached_configuration.cache_clear()
Пример #3
0
def clear_configuration_cache():
    from configuration.cache import get_cached_configuration
    get_cached_configuration.cache_clear()
Пример #4
0
def clear_configuration_cache():
    from configuration.cache import get_cached_configuration
    get_cached_configuration.cache_clear()
Пример #5
0
 def setUp(self):
     self.user = create_new_user()
     get_cached_configuration.cache_clear()
Пример #6
0
 def tearDown(self):
     super().tearDown()
     from configuration.cache import get_cached_configuration
     get_cached_configuration.cache_clear()
Пример #7
0
 def setUp(self):
     self.factory = RequestFactory()
     # Initially clear cache
     get_cached_configuration.cache_clear()
Пример #8
0
 def tearDown(self):
     super().tearDown()
     from configuration.cache import get_cached_configuration
     get_cached_configuration.cache_clear()
Пример #9
0
 def setUp(self):
     self.user = create_new_user()
     get_cached_configuration.cache_clear()
Пример #10
0
 def setUp(self):
     self.factory = RequestFactory()
     # Initially clear cache
     get_cached_configuration.cache_clear()