Skip to content

Commit

Permalink
Merge pull request #1967 from PyCQA/unnecessary-mocks
Browse files Browse the repository at this point in the history
remove a few unnecessary mocks in test_checker_manager
  • Loading branch information
asottile authored Feb 16, 2025
2 parents fffee8b + fa2ed71 commit e492aeb
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tests/unit/test_checker_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,5 @@ def test_make_checkers():
style_guide = style_guide_mock()
style_guide.options.filenames = ["file1", "file2"]
manager = checker.Manager(style_guide, finder.Checkers([], [], []), [])

with mock.patch("flake8.utils.fnmatch", return_value=True):
with mock.patch("flake8.processor.FileProcessor"):
manager.start()

manager.start()
assert manager.filenames == ("file1", "file2")

0 comments on commit e492aeb

Please sign in to comment.