nova/nova/tests/unit/pci
Diana Clarke a39f4944a0 Database not needed for test class: PciGetInstanceDevs
There is no need to hit the database in the PciGetInstanceDevs test
class, so inherit from test.NoDBTestCase instead.

All this test ever did, was assert that the method under test loaded the
pci_devices attribute of the given instance. That simple story got lost
amongst all the stubbing & mocking.

Runtime before: 4.018s
Runtime after: 0.609s

Change-Id: Ib8603ef365d24d52237a82379a8c0f55754b6616
2016-02-03 17:08:02 -05:00
..
__init__.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
fakes.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
test_devspec.py pci: store context when creating pci devices 2016-01-19 13:45:04 -05:00
test_manager.py Database not needed for test class: PciGetInstanceDevs 2016-02-03 17:08:02 -05:00
test_request.py pci: adding support to specify a device_type in pci requests 2016-01-13 13:26:30 -05:00
test_stats.py pci: store context when creating pci devices 2016-01-19 13:45:04 -05:00
test_utils.py libvirt: report pci Type-PF type even when VFs are disabled 2015-12-09 17:01:19 +02:00
test_whitelist.py pci: Remove get_pci_devices_filter() method 2015-08-11 17:19:22 -04:00