diff --git a/tests/functional/i/invalid/invalid_name/invalid_name_enum.py b/tests/functional/i/invalid/invalid_name/invalid_name_enum.py index 055883f122..0857b25a5c 100644 --- a/tests/functional/i/invalid/invalid_name/invalid_name_enum.py +++ b/tests/functional/i/invalid/invalid_name/invalid_name_enum.py @@ -1,5 +1,5 @@ """ Tests for invalid-name checker in the context of enums. """ -# pylint: disable=too-few-public-methods, missing-class-docstring +# pylint: disable=too-few-public-methods from dataclasses import dataclass @@ -33,4 +33,7 @@ def as_hex(self) -> str: @dataclass class Something(str, Enum): - asd: str = 'sdf' + """ A false positive for ``invalid-name`` + which should be fixed by https://github.com/pylint-dev/astroid/issues/2317 + """ + ASD: str = 1 # [invalid-name] diff --git a/tests/functional/i/invalid/invalid_name/invalid_name_enum.txt b/tests/functional/i/invalid/invalid_name/invalid_name_enum.txt index 97f29cc627..9e1de87595 100644 --- a/tests/functional/i/invalid/invalid_name/invalid_name_enum.txt +++ b/tests/functional/i/invalid/invalid_name/invalid_name_enum.txt @@ -1 +1,2 @@ invalid-name:17:4:17:14:Color:"Class constant name ""aquamarine"" doesn't conform to UPPER_CASE naming style":HIGH +invalid-name:39:4:None:None:Something:"Attribute name ""ASD"" doesn't conform to snake_case naming style":HIGH