diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-03-07 21:12:22 +0100 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-03-07 22:59:36 +0100 |
commit | b16d72f8184c4352052b984acffaa1ab42dd5fa7 (patch) | |
tree | d37151fc6ebaf861763fbc53708db3e764ace78d | |
parent | 7114fa72ee425bba2524d5ccbe67d0ae84ed9284 (diff) | |
download | pylint-git-b16d72f8184c4352052b984acffaa1ab42dd5fa7.tar.gz |
Migrate func_e0204.py to new functional tests
-rw-r--r-- | tests/functional/n/no/no_self_argument.py (renamed from tests/input/func_e0204.py) | 12 | ||||
-rw-r--r-- | tests/functional/n/no/no_self_argument.txt | 2 | ||||
-rw-r--r-- | tests/messages/func_e0204.txt | 2 |
3 files changed, 7 insertions, 9 deletions
diff --git a/tests/input/func_e0204.py b/tests/functional/n/no/no_self_argument.py index 9a0f708f0..38f6040b5 100644 --- a/tests/input/func_e0204.py +++ b/tests/functional/n/no/no_self_argument.py @@ -1,20 +1,18 @@ -"""check for method without self as first argument -""" +"""Check for method without self as first argument""" # pylint: disable=useless-object-inheritance from __future__ import print_function -__revision__ = 0 - -class Abcd(object): +class NoSelfArgument(object): """dummy class""" - def __init__(truc): + def __init__(truc): # [no-self-argument] """method without self""" print(1) - def abdc(yoo): + def abdc(yoo): # [no-self-argument] """another test""" print(yoo) + def edf(self): """just another method""" print('yapudju in', self) diff --git a/tests/functional/n/no/no_self_argument.txt b/tests/functional/n/no/no_self_argument.txt new file mode 100644 index 000000000..7e11c5ced --- /dev/null +++ b/tests/functional/n/no/no_self_argument.txt @@ -0,0 +1,2 @@ +no-self-argument:8:4:NoSelfArgument.__init__:"Method should have ""self"" as first argument" +no-self-argument:12:4:NoSelfArgument.abdc:"Method should have ""self"" as first argument" diff --git a/tests/messages/func_e0204.txt b/tests/messages/func_e0204.txt deleted file mode 100644 index d1c890c9f..000000000 --- a/tests/messages/func_e0204.txt +++ /dev/null @@ -1,2 +0,0 @@ -E: 11:Abcd.__init__: Method should have "self" as first argument -E: 15:Abcd.abdc: Method should have "self" as first argument |