Module Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list Assign NameStore ListLoad Str Str Str FunctionDef arguments args defaults vararg body Expr Str FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam defaults body If UnaryOpNot Call AttributeLoad Call NameLoad NameLoad attr NameLoad body Raise Call NameLoad BinOpMod Str NameLoad If CompareNotIn AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Str Assign NameStore TupleLoad AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr BinOpMod NameLoad NameLoad orelse Return Call NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list Return NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Lambda arguments args defaults NameLoad Assign NameStore NameStore NameStore Str FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr decorator_list decorator_list Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ClassDef bases NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Lambda arguments args defaults NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Str Str AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr If BoolOpAnd AttributeLoad AttributeLoad NameLoad attr attr UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Assign NameStore BinOpMod Str AttributeLoad AttributeLoad NameLoad attr attr Return Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list decorator_list Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ClassDef bases NameLoad body Assign NameStore Str decorator_list ClassDef bases NameLoad body Assign NameStore Str decorator_list ClassDef bases NameLoad body Assign NameStore NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore NameLoad decorator_list
N/A N/A abc N/A functools N/A os N/A fixtures N/A six rack.openstack.common.db.sqlalchemy session rack.openstack.common.db.sqlalchemy utils rack.openstack.common test DbFixture N/A N/A fixtures Fixture N/A N/A Basic database fixture.

    Allows to run tests on various db backends, such as SQLite, MySQL and
    PostgreSQL. By default use sqlite backend. To override default backend
    uri set env variable OS_TEST_DBAPI_CONNECTION with database admin
    credentials for specific backend.
     _get_uri N/A N/A self N/A N/A N/A N/A N/A os getenv OS_TEST_DBAPI_CONNECTION sqlite:// N/A __init__ N/A N/A self test N/A N/A N/A N/A N/A N/A super DbFixture self __init__ N/A N/A self test test N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super DbFixture self setUp N/A N/A N/A self test engine N/A N/A session create_engine N/A N/A self _get_uri N/A N/A N/A self test sessionmaker N/A N/A session get_maker N/A N/A self test engine N/A N/A N/A self addCleanup N/A N/A N/A self test engine dispose N/A N/A DbTestCase N/A N/A test BaseTestCase N/A N/A Base class for testing of DB code.

    Using `DbFixture`. Intended to be the main database test case to use all
    the tests on a given backend with user defined uri. Backend specific
    tests should be decorated with `backend_specific` decorator.
     N/A FIXTURE DbFixture setUp N/A N/A self N/A N/A N/A N/A N/A N/A super DbTestCase self setUp N/A N/A N/A self useFixture N/A N/A self FIXTURE self N/A N/A N/A ALLOWED_DIALECTS N/A sqlite mysql postgresql backend_specific N/A N/A N/A dialects N/A N/A Decorator to skip backend specific tests on inappropriate engines.

    ::dialects: list of dialects names under which the test will be launched.
     wrap N/A N/A f N/A N/A ins_wrap N/A N/A self N/A N/A N/A N/A N/A N/A N/A set dialects issubset ALLOWED_DIALECTS N/A N/A N/A ValueError N/A Please use allowed dialects: %s ALLOWED_DIALECTS N/A N/A N/A N/A self engine name dialects N/A N/A msg The test "%s" can be run only on %s. Current engine is %s. N/A args N/A N/A f __name__ N/A N/A join dialects N/A N/A self engine name N/A N/A N/A self skip N/A msg args N/A N/A N/A f self N/A N/A N/A functools wraps f N/A ins_wrap N/A N/A wrap N/A OpportunisticFixture N/A DbFixture N/A N/A Base fixture to use default CI databases.

    The databases exist in OpenStack CI infrastructure. But for the
    correct functioning in local environment the databases must be
    created manually.
     N/A DRIVER N/A N/A abc abstractproperty N/A N/A N/A N/A None N/A DBNAME PASSWORD USERNAME openstack_citest _get_uri N/A N/A self N/A N/A N/A N/A N/A utils get_connect_string backend N/A self DRIVER user N/A self USERNAME passwd N/A self PASSWORD database N/A self DBNAME N/A N/A N/A N/A six add_metaclass N/A abc ABCMeta OpportunisticTestCase N/A DbTestCase N/A N/A Base test case to use default CI databases.

    The subclasses of the test case are running only when openstack_citest
    database is available otherwise a tests will be skipped.
     N/A FIXTURE N/A N/A abc abstractproperty N/A N/A N/A N/A None setUp N/A N/A self N/A N/A N/A credentials N/A backend user passwd database N/A N/A self FIXTURE DRIVER N/A N/A self FIXTURE USERNAME N/A N/A self FIXTURE PASSWORD N/A N/A self FIXTURE DBNAME N/A N/A N/A N/A self FIXTURE DRIVER N/A N/A N/A utils is_backend_avail credentials N/A N/A msg N/A %s backend is not available. N/A N/A self FIXTURE DRIVER N/A N/A N/A self skip msg N/A N/A N/A N/A super OpportunisticTestCase self setUp N/A N/A N/A N/A six add_metaclass N/A abc ABCMeta MySQLOpportunisticFixture N/A OpportunisticFixture N/A N/A DRIVER mysql N/A PostgreSQLOpportunisticFixture N/A OpportunisticFixture N/A N/A DRIVER postgresql N/A MySQLOpportunisticTestCase N/A OpportunisticTestCase N/A N/A FIXTURE MySQLOpportunisticFixture N/A PostgreSQLOpportunisticTestCase N/A OpportunisticTestCase N/A N/A FIXTURE PostgreSQLOpportunisticFixture N/A