diff --git a/tests/integration_tests/cli/test_integration_cli.py b/tests/integration_tests/cli/test_integration_cli.py index e3c9a3df5ab..e9220085ae6 100644 --- a/tests/integration_tests/cli/test_integration_cli.py +++ b/tests/integration_tests/cli/test_integration_cli.py @@ -30,16 +30,6 @@ from ert.storage import open_storage -@pytest.fixture(name="mock_cli_run") -def fixture_mock_cli_run(monkeypatch): - mocked_monitor = Mock() - mocked_thread_start = Mock() - mocked_thread_join = Mock() - monkeypatch.setattr(threading.Thread, "start", mocked_thread_start) - monkeypatch.setattr(threading.Thread, "join", mocked_thread_join) - yield mocked_monitor, mocked_thread_join, mocked_thread_start - - @pytest.mark.scheduler @pytest.mark.integration_test def test_runpath_file(tmpdir, source_root, try_queue_and_scheduler, monkeypatch): @@ -226,9 +216,7 @@ def test_ensemble_evaluator_disable_monitoring( @pytest.mark.scheduler @pytest.mark.integration_test -def test_cli_test_run( - tmpdir, source_root, mock_cli_run, try_queue_and_scheduler, monkeypatch -): +def test_cli_test_run(tmpdir, source_root, try_queue_and_scheduler, monkeypatch): shutil.copytree( os.path.join(source_root, "test-data", "poly_example"), os.path.join(str(tmpdir), "poly_example"), @@ -239,11 +227,6 @@ def test_cli_test_run( parsed = ert_parser(parser, [TEST_RUN_MODE, "poly_example/poly.ert"]) run_cli(parsed) - monitor_mock, thread_join_mock, thread_start_mock = mock_cli_run - monitor_mock.assert_called_once() - thread_join_mock.assert_called_once() - thread_start_mock.assert_has_calls([[call(), call()]]) - @pytest.mark.scheduler @pytest.mark.integration_test