Package cubicweb :: Package devtools
[hide private]
[frames] | no frames]

Package devtools

source code

Test tools for cubicweb
Submodules [hide private]

Classes [hide private]
  TestServerConfiguration
  BaseApptestConfiguration
  ApptestConfiguration
  RealDatabaseConfiguration
configuration class for tests to run on a real database.
Functions [hide private]
 
init_test_database(config=None, configdir='data')
init a test database for a specific driver
source code
 
reset_test_database(config)
init a test database for a specific driver
source code
 
init_test_database_postgres(config)
initialize a fresh postgresql databse used for testing purpose
source code
 
init_test_database_sqlserver2005(config)
initialize a fresh sqlserver databse used for testing purpose
source code
 
cleanup_sqlite(dbfile, removetemplate=False) source code
 
reset_test_database_sqlite(config) source code
 
init_test_database_sqlite(config)
initialize a fresh sqlite databse used for testing purpose
source code
 
install_sqlite_patch(querier)
This patch hotfixes the following sqlite bug : - http://www.sqlite.org/cvstrac/tktview?tn=1327,33 (some dates are returned as strings rather thant date objects)
source code
Variables [hide private]
  SYSTEM_ENTITIES = schema.SCHEMA_TYPES | schema.INTERNAL_TYPES ...
  SYSTEM_RELATIONS = schema.META_RTYPES | schema.WORKFLOW_RTYPES...
  VIEW_VALIDATORS = {}
  BASE_URL = 'http://testing.fr/cubicweb/'
  DEFAULT_SOURCES = {'system': {'adapter': 'native', 'db-encodin...
Variables Details [hide private]

SYSTEM_ENTITIES

Value:
schema.SCHEMA_TYPES | schema.INTERNAL_TYPES | schema.WORKFLOW_TYPES | \
set(('CWGroup', 'CWUser',))

SYSTEM_RELATIONS

Value:
schema.META_RTYPES | schema.WORKFLOW_RTYPES | schema.WORKFLOW_DEF_RTYP\
ES | schema.SYSTEM_RTYPES | schema.SCHEMA_TYPES | set(('primary_email'\
,))

DEFAULT_SOURCES

Value:
{'system': {'adapter': 'native', 'db-encoding': 'UTF-8', 'db-user': u'\
admin', 'db-password': 'gingkow', 'db-name': 'tmpdb', 'db-driver': 'sq\
lite', 'db-host': None,}, 'admin': {'login': u'admin', 'password': u'g\
ingkow',},}