diff options
| author | Derek Gustafson <degustaf@gmail.com> | 2017-01-03 02:05:38 -0500 |
|---|---|---|
| committer | Claudiu Popa <pcmanticore@gmail.com> | 2017-01-03 09:05:38 +0200 |
| commit | e2f34ebe51d0b9d08ff7a03117b0149434446997 (patch) | |
| tree | c477dff3cee1b6c5612b5b1053d95db3b11c923c /pylint/test/unittest_lint.py | |
| parent | 60449ba9021c8b9bc428923f45ac6df277217347 (diff) | |
| download | pylint-git-e2f34ebe51d0b9d08ff7a03117b0149434446997.tar.gz | |
Refactor pytest fixtures. (#1255)
Diffstat (limited to 'pylint/test/unittest_lint.py')
| -rw-r--r-- | pylint/test/unittest_lint.py | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/pylint/test/unittest_lint.py b/pylint/test/unittest_lint.py index d687fcf37..9afea1bcc 100644 --- a/pylint/test/unittest_lint.py +++ b/pylint/test/unittest_lint.py @@ -200,15 +200,14 @@ def test_more_args(fake_path, case): assert sys.path == fake_path -@pytest.fixture -def linter(): - linter = PyLinter() - linter.disable('I') - linter.config.persistent = 0 - # register checkers - checkers.initialize(linter) - linter.set_reporter(testutils.TestReporter()) - return linter +@pytest.fixture(scope='module') +def disable(disable): + return ['I'] + + +@pytest.fixture(scope='module') +def reporter(reporter): + return testutils.TestReporter @pytest.fixture |
