Пример #1
0
 def test_database_queries(self):
     """
     Test that no database queries are send, after the cache was created.
     """
     config.setup_cache()
     self.assertNumQueries(0, self.get_config_var, key='string_var')
Пример #2
0
 def test_database_queries(self):
     """
     Test that no database queries are send, after the cache was created.
     """
     config.setup_cache()
     self.assertNumQueries(0, self.get_config_var, key='string_var')
Пример #3
0
 def process_request(self, request):
     config.setup_cache()