Mike Bayer 4522a9728e Break optimize_db_test_loader into package and module level
This unittest-compatible load_tests function was not
well organized for package-level tests and was broken
for module-level usage; as in the case of module-level usage,
the "pattern" parameter was being passed, which was unexpected
since the Python 2.7 documentation for unittest claims it will
be None.  However, we are using subunit to run tests, which
uses the unittest2 library that achieves compatibility with
Python 3 - in Python 3, the documentation was changed here
to note that "pattern" may be present (and in fact it is).

Instead, break it into optimize_package_test_loader and
optimize_module_test_loader.  The former assumes placement
inside of __init__.py only and the latter assumes placement
inside of a specific module only.

The issue with this function was observed when trying to get
OptimisingTestSuite to work correctly with neutron; tests
would be duplicated due to the double-search.  In local testing
it was shown that the function could cause recursion overflows.

It has been observed that using this function at the module level
is of great use when running subsets of tests, since the package-level
load_tests function is not consulted unless the test run is package-wide.

Change-Id: I267fd2fbc16504c11addef870fc8d4fc500da7d9
2016-11-16 15:41:01 -05:00
2015-09-24 10:56:06 -05:00
2014-04-30 16:55:51 +02:00
2014-04-18 11:33:16 +03:00
2014-04-18 11:33:16 +03:00
2014-09-01 11:40:08 +02:00
2014-04-18 11:33:16 +03:00
2016-11-04 06:01:28 +00:00
2015-09-18 16:41:34 +00:00

oslo.db -- OpenStack Database Pattern Library

Latest Version

Downloads

The oslo db (database) handling library, provides database connectivity to different database backends and various other helper utils.

Description
OpenStack Common DB Code
Readme 14 MiB
Languages
Python 99.6%
Shell 0.4%