nova/nova/tests/functional/libvirt
Balazs Gibizer bf654e3a4a Remove double mocking... again
I thought we fixed all the double mocking issues with
I3998d0d49583806ac1c3ae64f1b1fe343cefd20d but I was wrong.

While we used both mock and unittest.mock the fixtures.MockPatch
used the mock lib instead of the unittest.mock lib.
The path Ibf4f36136f2c65adad64f75d665c00cf2de4b400 (Remove the PowerVM driver)
removed the last user of mock lib from nova. So it is also
removed the mock from test-requirements. This triggered that
fixtures.MockPatch athat started using unittest.mock too.

Before Ibf4f36136f2c65adad64f75d665c00cf2de4b400 a function can be mocked
twice once with unittest.mock and once with fixtures.MockPatch (still
using mock). However after that patch both path of such double
mocking goes through unittest.mock and the second one fails.

So this patch fixes double mocking so far hidden behind
fixtures.MockPatch.

Also this patch makes the py310 and functional-py310 jobs voting at
least in the check queue to prevent future changes adding double mocks.

Change-Id: Ic1352ec31996577a5d0ad18a057339df3e49de25
2022-08-08 19:50:02 +02:00
..
__init__.py tests: introduce a NUMAServersTest class 2015-04-16 11:43:53 -04:00
base.py Remove double mocking... again 2022-08-08 19:50:02 +02:00
integrated_helpers.py tests: Move libvirt-specific fixtures 2021-05-24 11:00:29 +01:00
test_device_bus_migration.py manage: Add image_property commands 2022-02-24 01:00:36 +00:00
test_evacuate.py Use unittest.mock instead of third party mock 2022-08-01 17:46:26 +02:00
test_live_migration.py Clean up when queued live migration aborted 2022-03-09 14:17:10 +00:00
test_machine_type.py Adds validation for hw machine type in host caps 2022-06-27 11:37:56 +00:00
test_numa_live_migration.py fup: Move _migrate_stub into LibvirtMigrationMixin 2021-08-20 13:07:14 +01:00
test_numa_servers.py Use unittest.mock instead of third party mock 2022-08-01 17:46:26 +02:00
test_pci_sriov_servers.py Use unittest.mock instead of third party mock 2022-08-01 17:46:26 +02:00
test_report_cpu_traits.py Use unittest.mock instead of third party mock 2022-08-01 17:46:26 +02:00
test_reshape.py Remove double mocking... again 2022-08-08 19:50:02 +02:00
test_rt_servers.py functional: Add 'start_compute' helper 2020-09-10 13:51:57 +01:00
test_shared_resource_provider.py functional: Add and use 'GlanceFixture' 2020-09-16 11:31:23 +01:00
test_uefi.py driver/secheduler/docs for Adds Pick guest CPU architecture based on 2022-02-24 12:25:59 -05:00
test_vgpu.py Remove double mocking... again 2022-08-08 19:50:02 +02:00
test_vpmem.py tests: Rename 'ImageBackendFixture' to 'LibvirtImageBackendFixture' 2021-05-24 11:00:59 +01:00
test_vtpm.py Remove double mocking 2022-08-02 15:31:15 +02:00