nova/nova/tests/unit/pci
Stephen Finucane 51d16adda6 mypy: Add type annotations to 'nova.pci'
The 'nova.pci' module is poorly understood and difficult to debug.
Start adding type hints to make this a little easier to parse and catch
dumb errors. Some code needs to be reworked to make 'mypy' happy, but
it's mostly just type annotations.

Note that because of how the 'nova.objects' module works, we need to
delay interpolation by using forward references, or expressing the type
as string literals to be resolved later [1].

[1] https://www.python.org/dev/peps/pep-0484/#forward-references

Change-Id: I2a609606806c6cabdf95d53339335f61743fc5b0
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2021-04-26 18:06:21 +01:00
..
__init__.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
fakes.py Fix mock.patch usage in unit tests 2018-09-13 02:54:07 +00:00
test_devspec.py Remove six.text_type (2/2) 2020-12-13 11:26:35 +00:00
test_manager.py mypy: Add type annotations to 'nova.pci' 2021-04-26 18:06:21 +01:00
test_request.py objects: Add 'VDPA' to 'PciDeviceType' 2021-03-11 09:40:04 +00:00
test_stats.py pci: Add vDPA vnic to PCI request mapping and filtering 2021-03-16 20:39:26 +00:00
test_utils.py mypy: Add type annotations to 'nova.pci' 2021-04-26 18:06:21 +01:00
test_whitelist.py Enhance PCI passthrough whitelist to support regex 2016-12-11 00:53:14 +02:00