mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-10 14:54:17 +00:00
remove a few unnecessary mocks in test_checker_manager
noticed while implementing the --jobs limiter
This commit is contained in:
parent
fffee8ba9d
commit
fa2ed7145c
1 changed files with 1 additions and 5 deletions
|
|
@ -76,9 +76,5 @@ def test_make_checkers():
|
||||||
style_guide = style_guide_mock()
|
style_guide = style_guide_mock()
|
||||||
style_guide.options.filenames = ["file1", "file2"]
|
style_guide.options.filenames = ["file1", "file2"]
|
||||||
manager = checker.Manager(style_guide, finder.Checkers([], [], []), [])
|
manager = checker.Manager(style_guide, finder.Checkers([], [], []), [])
|
||||||
|
manager.start()
|
||||||
with mock.patch("flake8.utils.fnmatch", return_value=True):
|
|
||||||
with mock.patch("flake8.processor.FileProcessor"):
|
|
||||||
manager.start()
|
|
||||||
|
|
||||||
assert manager.filenames == ("file1", "file2")
|
assert manager.filenames == ("file1", "file2")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue