summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniël van Noord <13665637+DanielNoord@users.noreply.github.com>2021-10-07 21:28:27 +0200
committerDaniël van Noord <13665637+DanielNoord@users.noreply.github.com>2021-10-10 09:58:20 +0200
commit1eaf5aa211a16607a0f15cae56a90e94555f3809 (patch)
tree2f87af7b2f272cb1911889624af0d8d7b61a6ea9 /tests
parent087fe6856aac60c8781106c96a2b014fedffffb8 (diff)
downloadpylint-git-1eaf5aa211a16607a0f15cae56a90e94555f3809.tar.gz
Move message adding functions from ``MessagesHandlerMixIn``
Diffstat (limited to 'tests')
-rw-r--r--tests/lint/unittest_lint.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/lint/unittest_lint.py b/tests/lint/unittest_lint.py
index f8a9ba412..91d736744 100644
--- a/tests/lint/unittest_lint.py
+++ b/tests/lint/unittest_lint.py
@@ -316,14 +316,14 @@ def test_message_state_scope(init_linter: PyLinter) -> None:
linter = init_linter
linter.disable("C0202")
- assert MSG_STATE_SCOPE_CONFIG == linter.get_message_state_scope("C0202")
+ assert MSG_STATE_SCOPE_CONFIG == linter._get_message_state_scope("C0202")
linter.disable("W0101", scope="module", line=3)
- assert MSG_STATE_SCOPE_CONFIG == linter.get_message_state_scope("C0202")
- assert MSG_STATE_SCOPE_MODULE == linter.get_message_state_scope("W0101", 3)
+ assert MSG_STATE_SCOPE_CONFIG == linter._get_message_state_scope("C0202")
+ assert MSG_STATE_SCOPE_MODULE == linter._get_message_state_scope("W0101", 3)
linter.enable("W0102", scope="module", line=3)
- assert MSG_STATE_SCOPE_MODULE == linter.get_message_state_scope("W0102", 3)
+ assert MSG_STATE_SCOPE_MODULE == linter._get_message_state_scope("W0102", 3)
linter.config = FakeConfig()
- assert MSG_STATE_CONFIDENCE == linter.get_message_state_scope(
+ assert MSG_STATE_CONFIDENCE == linter._get_message_state_scope(
"this-is-bad", confidence=interfaces.INFERENCE
)