Merge pull request #1967 from PyCQA/unnecessary-mocks

remove a few unnecessary mocks in test_checker_manager
This commit is contained in:
Anthony Sottile 2025-02-16 15:15:09 -05:00 committed by GitHub
commit e492aeb385
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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