17 lines
392 B
Python
17 lines
392 B
Python
# scopes.testing
|
|
|
|
"""Common stuff (config, fixtures, ...) for testing"""
|
|
import os, sys
|
|
sys.path = [os.path.dirname(__file__)] + sys.path
|
|
|
|
import config
|
|
from scopes.storage.db import postgres
|
|
|
|
config.dbengine = 'postgresql+psycopg'
|
|
config.dbname = 'testdb'
|
|
config.dbuser = 'testuser'
|
|
config.dbpassword = 'secret'
|
|
config.dbschema = 'testing'
|
|
config.StorageFactory = postgres.StorageFactory
|
|
|
|
|