summaryrefslogtreecommitdiff
path: root/oslo_db/sqlalchemy/utils.py
diff options
context:
space:
mode:
authorCedric Brandily <zzelle@gmail.com>2015-06-02 19:48:25 +0200
committerCedric Brandily <zzelle@gmail.com>2015-06-04 16:16:34 +0200
commit42de3f6b49f1e51ee9deba585d782ca12e3483dd (patch)
tree60fe25e0e8a719a1cdbc627a92dbb2d341f4ed38 /oslo_db/sqlalchemy/utils.py
parent42dc93608f527406534ea8b10a76556eb92fd9dd (diff)
downloadoslo-db-42de3f6b49f1e51ee9deba585d782ca12e3483dd.tar.gz
Allow to fail instead of skip in DbFixture
Tests using DbFixture[1] are currently skipped if the database is unavailable (no db service, no permissions, etc.) which is fine when tests are runned by developers but not when runned by the gate jobs. This change defines the attribute DbFixture.SKIP_ON_UNAVAILABLE_DB: when the database is unvailable, tests are: * skipped when SKIP_ON_UNAVAILABLE_DB=True (default, legacy behaviour), * failed when SKIP_ON_UNAVAILABLE_DB=False. [1] oslo.db.sqlalchemy.test_base Change-Id: I067f46417fefe252c650e1e5e590e83547b11b6a Closes-Bug: #1404093
Diffstat (limited to 'oslo_db/sqlalchemy/utils.py')
0 files changed, 0 insertions, 0 deletions