Skip to content

Commit

Permalink
Satisfy linters
Browse files Browse the repository at this point in the history
  • Loading branch information
akaihola committed Feb 6, 2022
1 parent eb95c68 commit 1224a0d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/darker/tests/test_import_sorting.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
"""Tests for :mod:`darker.import_sorting`"""

# pylint: disable=unused-argument

from importlib import reload
from pathlib import Path
from textwrap import dedent
Expand Down
6 changes: 6 additions & 0 deletions src/darker/tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ def test_isort_option_without_isort(git_repo, caplog):

@pytest.fixture
def run_isort(git_repo, monkeypatch, caplog, request, find_project_root_cache_clear):
"""Fixture for running Darker with requested arguments and a patched `isort`
Provides an `run_isort.isort_code` mock object which allows checking whether and how
the `isort.code()` function was called.
"""
monkeypatch.chdir(git_repo.root)
paths = git_repo.add({"test1.py": "original"}, commit="Initial commit")
paths["test1.py"].write_bytes(b"changed")
Expand Down

0 comments on commit 1224a0d

Please sign in to comment.