nova/nova/tests/unit/api
Diana Clarke 2f670bf40c Fix database poison warnings, part 16
The following warning appears in the unit test logs a number of times.

    "UserWarning: This test uses methods that set internal oslo_db
state, but it does not claim to use the database. This will conflict
with the setup of tests that do use the database and cause failures
later."

This patch fixes all the warnings from:

    nova.tests.unit.api.openstack.compute.test_shelve.py

Note that this warning is only emitted once per unit test worker, so new
offenders will show up in the logs each time you fix a test until they
are all gone.

Change-Id: I39cca6587f99cfe6f980b6d8fe857618fac6bb5a
Related-Bug: #1568414
2016-09-26 21:22:47 -04:00
..
openstack Fix database poison warnings, part 16 2016-09-26 21:22:47 -04:00
__init__.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
test_auth.py Use from_environ when creating a context 2016-07-14 12:04:21 +10:00
test_compute_req_id.py Make unit tests inherit from test.NoDBTestCase 2015-03-06 09:46:31 +02:00
test_wsgi.py Fix invalid import order 2016-07-04 16:03:42 +05:30