diff --git a/convert2rhel/unit_tests/breadcrumbs_test.py b/convert2rhel/unit_tests/breadcrumbs_test.py index 68f1930204..c721511428 100644 --- a/convert2rhel/unit_tests/breadcrumbs_test.py +++ b/convert2rhel/unit_tests/breadcrumbs_test.py @@ -18,17 +18,13 @@ __metaclass__ = type import json -import sys import pytest import six -import convert2rhel.toolopts - from convert2rhel import breadcrumbs, pkghandler, pkgmanager from convert2rhel.unit_tests import create_pkg_information, create_pkg_obj from convert2rhel.unit_tests.conftest import centos7 -from convert2rhel.unit_tests.toolopts_test import mock_cli_arguments six.add_move(six.MovedModule("mock", "mock", "unittest.mock")) diff --git a/convert2rhel/unit_tests/main_test.py b/convert2rhel/unit_tests/main_test.py index c76217ca50..8cdece6d3f 100644 --- a/convert2rhel/unit_tests/main_test.py +++ b/convert2rhel/unit_tests/main_test.py @@ -317,7 +317,7 @@ def test_main(monkeypatch, tmp_path): assert raise_for_skipped_failures_mock.call_count == 2 assert report_summary_mock.call_count == 2 assert clear_versionlock_mock.call_count == 1 - assert ask_to_continue_mock.call_count == 1 + assert ask_to_continue_mock.call_count == 2 assert post_ponr_conversion_mock.call_count == 1 assert rpm_files_diff_mock.call_count == 1 assert remove_tmp_dir_mock.call_count == 1 @@ -700,7 +700,7 @@ def test_main_rollback_post_ponr_changes_phase(self, monkeypatch, caplog, tmp_pa assert find_actions_of_severity_mock.call_count == 1 assert clear_versionlock_mock.call_count == 1 assert report_summary_mock.call_count == 2 - assert ask_to_continue_mock.call_count == 1 + assert ask_to_continue_mock.call_count == 2 assert post_ponr_conversion_mock.call_count == 1 assert finish_collection_mock.call_count == 1 assert summary_as_json_mock.call_count == 1