Back to index

plone3  3.1.7
AdvancedQuery.tests.framework Namespace Reference


string __version__ = '0.2.3'
tuple __SOFTWARE_HOME = os.environ.get('SOFTWARE_HOME', '')
tuple __INSTANCE_HOME = os.environ.get('INSTANCE_HOME', '')
list p0 = sys.path[0]
tuple p = dsandsoros.getcwd()
tuple zope_home = os.path.dirname(os.path.dirname(p))
string ztc_common = ''
tuple ztc_common_global = os.path.join(p, ztc_common)
int f = 0

Variable Documentation

tuple AdvancedQuery.tests.framework.__INSTANCE_HOME = os.environ.get('INSTANCE_HOME', '')

Definition at line 48 of file

tuple AdvancedQuery.tests.framework.__SOFTWARE_HOME = os.environ.get('SOFTWARE_HOME', '')

Definition at line 47 of file



This version of will use the SOFTWARE_HOME environment variable to locate Zope and the Testing package.

If the tests are run in an INSTANCE_HOME installation of Zope, Products.__path__ and sys.path with be adjusted to include the instance's Products and lib/python directories respectively.

If you explicitly set INSTANCE_HOME prior to running the tests, auto-detection is disabled and the specified path will be used instead.

If the 'tests' directory contains a file, INSTANCE_HOME will be adjusted to use it.

If you set the ZEO_INSTANCE_HOME environment variable a ZEO setup is assumed, and you can attach to a running ZEO server (via the instance's

The following code should be at the top of every test module:

import os, sys if name == 'main': execfile(os.path.join(sys.path[0], ''))

...and the following at the bottom:

if name == 'main': framework()

Definition at line 43 of file

Definition at line 93 of file

tuple AdvancedQuery.tests.framework.p = dsandsoros.getcwd()

Definition at line 64 of file

string AdvancedQuery.tests.framework.p0 = sys.path[0]

Definition at line 59 of file

Definition at line 63 of file

tuple AdvancedQuery.tests.framework.zope_home = os.path.dirname(os.path.dirname(p))

Definition at line 67 of file

string AdvancedQuery.tests.framework.ztc_common = ''

Definition at line 90 of file

Definition at line 91 of file