From f4bcd76f6a65fa5ae1974811eff9e81445ebec6e Mon Sep 17 00:00:00 2001 From: Richard Kellnberger Date: Sun, 28 Jan 2024 17:11:17 +0100 Subject: [PATCH] format --- test/test_plugin.py | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/test/test_plugin.py b/test/test_plugin.py index 9c08c8d..9759544 100644 --- a/test/test_plugin.py +++ b/test/test_plugin.py @@ -196,13 +196,15 @@ def test_option_overrides_dmypy(last_diagnostics_monkeypatch, workspace): last_diagnostics_monkeypatch.setattr( FakeConfig, "plugin_settings", - lambda _, p: { - "overrides": overrides, - "dmypy": True, - "live_mode": False, - } - if p == "pylsp_mypy" - else {}, + lambda _, p: ( + { + "overrides": overrides, + "dmypy": True, + "live_mode": False, + } + if p == "pylsp_mypy" + else {} + ), ) m = Mock(wraps=lambda a, **_: Mock(returncode=0, **{"stdout": ""})) @@ -240,13 +242,15 @@ def test_dmypy_status_file(tmpdir, last_diagnostics_monkeypatch, workspace): last_diagnostics_monkeypatch.setattr( FakeConfig, "plugin_settings", - lambda _, p: { - "dmypy": True, - "live_mode": False, - "dmypy_status_file": str(statusFile), - } - if p == "pylsp_mypy" - else {}, + lambda _, p: ( + { + "dmypy": True, + "live_mode": False, + "dmypy_status_file": str(statusFile), + } + if p == "pylsp_mypy" + else {} + ), ) document = Document(DOC_URI, workspace, DOC_TYPE_ERR)