diff options
author | Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> | 2022-04-15 12:27:46 +0200 |
---|---|---|
committer | Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> | 2022-04-15 13:01:35 +0200 |
commit | 2f7cb9870c61592bf663359fb21250e007c022fe (patch) | |
tree | acefaaaa6672bb585ac379d07b340aa66952b9b2 /tests/checkers | |
parent | 63173f8f3a21671155c9a3122c5ecaa8a66ce0b5 (diff) | |
download | pylint-git-2f7cb9870c61592bf663359fb21250e007c022fe.tar.gz |
Deprecate ``get_global_option``
Diffstat (limited to 'tests/checkers')
-rw-r--r-- | tests/checkers/unittest_design.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/checkers/unittest_design.py b/tests/checkers/unittest_design.py index 46eab45d7..e81a68a92 100644 --- a/tests/checkers/unittest_design.py +++ b/tests/checkers/unittest_design.py @@ -6,7 +6,6 @@ import astroid from pylint.checkers import design_analysis from pylint.testutils import CheckerTestCase, set_config -from pylint.utils.utils import get_global_option class TestDesignChecker(CheckerTestCase): @@ -42,7 +41,7 @@ class TestDesignChecker(CheckerTestCase): @set_config(exclude_too_few_public_methods="toml.*") def test_exclude_too_few_methods_with_value(self) -> None: """Test exclude-too-few-public-methods option with value.""" - options = get_global_option(self.checker, "exclude-too-few-public-methods") + options = self.linter.config.exclude_too_few_public_methods assert any(i.match("toml") for i in options) assert any(i.match("toml.*") for i in options) @@ -52,6 +51,6 @@ class TestDesignChecker(CheckerTestCase): """Test exclude-too-few-public-methods option with no value. Compare against actual list to see if validator works. """ - options = get_global_option(self.checker, "exclude-too-few-public-methods") + options = self.linter.config.exclude_too_few_public_methods assert options == [] |