Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
Richardk2n committed Jan 28, 2024
1 parent 5bdc45d commit f4bcd76
Showing 1 changed file with 18 additions and 14 deletions.
32 changes: 18 additions & 14 deletions test/test_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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": ""}))
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit f4bcd76

Please sign in to comment.