mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	testing: Use LocMemCache for backend testing.
LocMemCache is not compatible with frontend tests so we only use it for backend tests. To do that we change the cache backend within `not CASPER_TESTS` if block.
This commit is contained in:
		@@ -96,6 +96,12 @@ CACHES['database'] = {
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
# Use local memory cache for backend tests.
 | 
			
		||||
if not CASPER_TESTS:
 | 
			
		||||
    CACHES['default'] = {
 | 
			
		||||
        'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
# Enable file:/// hyperlink support by default in tests
 | 
			
		||||
ENABLE_FILE_LINKS = True
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user