From 1f5276b411de8593d277d118491caa481ed8f5a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Stucke?= Date: Mon, 9 May 2022 17:03:03 +0200 Subject: [PATCH] test bugfix --- src/plugins/analysis/linter/test/test_ruby_linter.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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