diff --git a/src/plugins/analysis/linter/test/test_ruby_linter.py b/src/plugins/analysis/linter/test/test_ruby_linter.py index 7873610ff..e6b8e639e 100644 --- a/src/plugins/analysis/linter/test/test_ruby_linter.py +++ b/src/plugins/analysis/linter/test/test_ruby_linter.py @@ -44,7 +44,10 @@ def test_do_analysis(monkeypatch): - monkeypatch.setattr('plugins.analysis.linter.internal.linters.subprocess.run', lambda *_, **__: CompletedProcess('args', 0, stdout=MOCK_RESPONSE)) + monkeypatch.setattr( + 'plugins.analysis.linter.internal.linters.run_docker_container', + lambda *_, **__: CompletedProcess('args', 0, stdout=MOCK_RESPONSE) + ) result = run_rubocop('any/path') assert len(result) == 1