cloudbase-init/cloudbaseinit/tests
Adrian Vladu 0fded69cb3 replace unittest.mock._get_target with mock one
Use the original importer for mock. Otherwise, the unit tests that
use importlib with context are not running in an isolated manner,
leading to various transient failures if `stestr` is not run with the
`--isolated` flag.

The unittest.mock._get_target has been changed in Python 3.11, by commit:
ab7fcc8fbd

This change is needed to add support for Python 3.11 and Python 3.12
unit testing.

Change-Id: Ic73f5280116673f771f5460cdfd3702f5fbe16b5
2023-11-09 15:39:45 +02:00
..
metadata Accept drives with vFAT label 'cidata' as a configdrive. 2023-05-14 06:32:55 +00:00
osutils Merge "Retry user load profile on Windows" 2022-12-07 15:17:29 +00:00
plugins crypto: replaced openssl with cryptography module 2022-12-12 14:22:56 +02:00
resources Change the behavior of write_file plugin 2016-11-23 17:29:12 +02:00
utils Accept drives with vFAT label 'cidata' as a configdrive. 2023-05-14 06:32:55 +00:00
__init__.py replace unittest.mock._get_target with mock one 2023-11-09 15:39:45 +02:00
fake.py Resets service user password at each execution 2016-10-14 17:06:47 +03:00
test_exception.py Improve the test coverage by a couple of percents 2015-03-25 23:00:52 +02:00
test_init.py use instance_id as string for plugin sections 2023-10-12 17:09:05 +03:00
test_version.py opendev: bumped gates to python 3.9/3.10 2022-09-07 20:26:34 +03:00
testutils.py Retry user load profile on Windows 2021-01-13 13:04:26 +02:00