diff --git a/.github/scripts/tests/test_oci_selection_setup_wording.py b/.github/scripts/tests/test_oci_selection_setup_wording.py index 54777705..47a6fc4c 100644 --- a/.github/scripts/tests/test_oci_selection_setup_wording.py +++ b/.github/scripts/tests/test_oci_selection_setup_wording.py @@ -41,6 +41,8 @@ class SelectionSetupWording(TestCase): fn = extracted('_interactive_management', os=SimpleNamespace(geteuid=lambda: 0), shutil=SimpleNamespace(which=lambda _: '/fake/pct'), saved_inventory=lambda _: [], _clean_orphans=lambda project: None, + recover_automatically=lambda project: None, offer_recovery=lambda project, ui: None, + carry_records=lambda project, **options: {}, translate=lambda s: s) fn(Path('/fixture'), ui) ui.message.assert_called_once_with(EMPTY, 'OCI management') diff --git a/.github/scripts/tests/test_oci_update_preservation_wording.py b/.github/scripts/tests/test_oci_update_preservation_wording.py index 59c8ec66..6d42fa75 100644 --- a/.github/scripts/tests/test_oci_update_preservation_wording.py +++ b/.github/scripts/tests/test_oci_update_preservation_wording.py @@ -130,6 +130,7 @@ class UpdateWording(unittest.TestCase): scope = {'sys': SimpleNamespace(path=[], executable='python3'), 'translate': lambda text: text, 'check_selected': lambda project, row: row, 'images': SimpleNamespace(offer_removal=lambda *args: None), + 'carry_records': lambda project, **options: {}, '_run_lifecycle': lambda command, title: events.append(('run', command, title)) or True} row = {'vmid': 101, 'reason': 'matched', 'stack': False, 'pending': False, 'status': 'installed'} decision = False