a39f4944a0
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 |
||
---|---|---|
.. | ||
__init__.py | ||
fakes.py | ||
test_devspec.py | ||
test_manager.py | ||
test_request.py | ||
test_stats.py | ||
test_utils.py | ||
test_whitelist.py |