38 lines
		
	
	
		
			1017 B
		
	
	
	
		
			Python
		
	
	
	
			
		
		
	
	
			38 lines
		
	
	
		
			1017 B
		
	
	
	
		
			Python
		
	
	
	
| # -*- coding: utf-8 -*-
 | |
| '''
 | |
| Test settings
 | |
| 
 | |
| - Used to run tests fast on the continuous integration server and locally
 | |
| '''
 | |
| 
 | |
| from .common import *  # noqa
 | |
| 
 | |
| # Mail settings
 | |
| # ------------------------------------------------------------------------------
 | |
| EMAIL_HOST = 'localhost'
 | |
| EMAIL_PORT = 1025
 | |
| 
 | |
| # In-memory email backend stores messages in django.core.mail.outbox
 | |
| # for unit testing purposes
 | |
| EMAIL_BACKEND = 'django.core.mail.backends.locmem.EmailBackend'
 | |
| 
 | |
| # TESTING
 | |
| # ------------------------------------------------------------------------------
 | |
| TEST_RUNNER = 'django.test.runner.DiscoverRunner'
 | |
| 
 | |
| # Keep templates in memory so tests run faster
 | |
| TEMPLATES[0]['OPTIONS']['loaders'] = [
 | |
|     ('django.template.loaders.cached.Loader', [
 | |
|         'django.template.loaders.filesystem.Loader',
 | |
|         'django.template.loaders.app_directories.Loader',
 | |
|     ]),
 | |
| ]
 | |
| 
 | |
| DATABASES = {
 | |
|     'default': {
 | |
|         'ENGINE': 'django.db.backends.sqlite3',
 | |
|         'NAME': os.path.join(str(ROOT_DIR), 'cache/test_database.db'),
 | |
|         }
 | |
| }
 | |
| 
 |