[elbe-devel] [PATCH 2/2] test: callable params example
Olivier Dion
dion at linutronix.de
Wed Jul 22 18:03:37 CEST 2020
On Wed, 22 Jul 2020, Torben Hohn <torben.hohn at linutronix.de> wrote:
> Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
Reviewed-by: Olivier Dion <dion at linutronix.de>
> ---
> elbepack/tests/test_doctest.py | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/elbepack/tests/test_doctest.py b/elbepack/tests/test_doctest.py
> index a908f9e8c..7b660169a 100644
> --- a/elbepack/tests/test_doctest.py
> +++ b/elbepack/tests/test_doctest.py
> @@ -13,7 +13,9 @@ from elbepack.commands.test import ElbeTestCase
>
> class ElbeDocTest(ElbeTestCase):
>
> - params = [shellhelper, filesystem]
> + @classmethod
> + def params(_cls):
> + return [shellhelper, filesystem]
This should be @staticmethod if _cls is not used.
>
> def setUp(self):
>
> --
> 2.20.1
>
> _______________________________________________
> elbe-devel mailing list
> elbe-devel at linutronix.de
> https://lists.linutronix.de/mailman/listinfo/elbe-devel
--
Olivier Dion
Linutronix GmbH | Bahnhofstrasse 3 | D-88690 Uhldingen-Mühlhofen
More information about the elbe-devel
mailing list