remove a few unnecessary mocks in test_checker_manager

noticed while implementing the --jobs limiter
This commit is contained in:
Anthony Sottile 2025-02-16 15:21:24 -05:00
parent fffee8ba9d
commit fa2ed7145c

View file

@ -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")