freeipa/ipatests/test_ipalib
Stanislav Levin bf3083c376 pylint: Fix unnecessary-lambda-assignment
https://pylint.pycqa.org/en/latest/user_guide/messages/convention/unnecessary-lambda-assignment.html:
> Used when a lambda expression is assigned to variable rather than
defining a standard function with the "def" keyword.

https://peps.python.org/pep-0008/#programming-recommendations:
> Always use a def statement instead of an assignment statement that
binds a lambda expression directly to an identifier:
def f(x): return 2*x
f = lambda x: 2*x
The first form means that the name of the resulting function object is
specifically ‘f’ instead of the generic ‘<lambda>’. This is more useful
for tracebacks and string representations in general. The use of the
assignment statement eliminates the sole benefit a lambda expression can
offer over an explicit def statement (i.e. that it can be embedded
inside a larger expression)

Fixes: https://pagure.io/freeipa/issue/9278
Signed-off-by: Stanislav Levin <slev@altlinux.org>
Reviewed-By: Stanislav Levin <slev@altlinux.org>
2023-01-10 08:30:58 +01:00
..
data test_text: add test ipa.pot file for tests 2016-09-26 18:48:07 +02:00
__init__.py Make an ipa-tests package 2013-06-17 19:22:50 +02:00
test_aci.py Handle subyptes in ACIs 2018-06-20 08:38:03 +02:00
test_backend.py pylint: Fix deprecated-method for threading 2022-03-11 13:37:08 -05:00
test_base.py Py3: Remove subclassing from object 2018-09-27 11:49:04 +02:00
test_capabilities.py Applied tier0 and tier1 marks on unit tests and xmlrpc tests 2015-11-09 11:49:17 +01:00
test_cli.py pylint: remove unneeded disable=unused-private-member 2023-01-10 08:30:58 +01:00
test_config.py pylint: Fix no-member 2022-03-11 13:37:08 -05:00
test_crud.py Remove unused variables in tests 2016-09-27 13:35:58 +02:00
test_errors.py pylint: remove unneeded disable=unused-private-member 2023-01-10 08:30:58 +01:00
test_frontend.py pylint: Fix unnecessary-lambda-assignment 2023-01-10 08:30:58 +01:00
test_messages.py Tests: Add data attribute to messages 2016-08-16 11:56:49 +02:00
test_output.py Generate same API.txt under Python 2 and 3 2018-02-15 09:41:30 +01:00
test_parameters.py pylint: Fix unnecessary-lambda-assignment 2023-01-10 08:30:58 +01:00
test_plugable.py ipatests: Add option/arg parsing tests for the cli 2020-08-25 10:31:19 -04:00
test_rpc.py pylint: Fix useless-suppression 2022-03-11 13:37:08 -05:00
test_text.py pytest: Migrate unittest/nose to Pytest fixtures 2020-02-12 18:08:32 +02:00
test_util.py Add skip_if_platform marker 2020-04-28 15:33:57 +02:00
test_x509.py When loading certificates verify that it is X.509 v3 2021-06-14 15:19:42 -04:00