diff --git a/pylint_plugins/api_models_test.py b/pylint_plugins/api_models_test.py index 7ff7c3eba1..95a2a0781d 100644 --- a/pylint_plugins/api_models_test.py +++ b/pylint_plugins/api_models_test.py @@ -19,6 +19,7 @@ import pylint.checkers.typecheck import pylint.testutils +from pylint.interfaces import Confidence # merely importing this registers it in astroid # so parse() will use our predicate and transform functions. @@ -305,6 +306,13 @@ def test(): msg_id="no-member", # E1101 args=("Instance of", "TestAPI", "missing", ""), node=assign_node_missing.value, + line=assign_node_missing.lineno, + # fixme: +10 is a workaround, need understand why coloffset + # is 4 but visit_attribute is coloffset 14. + col_offset=assign_node_missing.col_offset+10, + end_line=assign_node_missing.end_lineno, + end_col_offset=assign_node_missing.end_col_offset, + confidence=Confidence(name='INFERENCE', description='Warning based on inference result.'), ) ): self.checker.visit_attribute(assign_node_missing.value) diff --git a/test-requirements.txt b/test-requirements.txt index 37366c4347..903dad34ea 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,8 +1,8 @@ coverage pep8==1.7.1 st2flake8==0.1.0 -astroid==2.5.6 -pylint==2.8.2 +astroid==2.15.8 +pylint==2.17.7 pylint-plugin-utils>=0.4 black==22.3.0 pre-commit==2.1.0