mirror of
https://github.com/PyCQA/flake8.git
synced 2026-03-29 10:36:53 +00:00
Merge pull request #1967 from PyCQA/unnecessary-mocks
remove a few unnecessary mocks in test_checker_manager
This commit is contained in:
commit
e492aeb385
1 changed files with 1 additions and 5 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue