From d3366dd2bc445549f2c6e5a94c4ab6a8ddbde9b6 Mon Sep 17 00:00:00 2001 From: Konrad Weihmann Date: Sat, 23 Nov 2024 12:04:12 +0000 Subject: [PATCH] tests: fix linter issues Signed-off-by: Konrad Weihmann --- tests/test_class_oelint_var_badimagefeatures.py | 9 +++------ tests/test_class_oelint_var_renamed.py | 12 ++++-------- 2 files changed, 7 insertions(+), 14 deletions(-) diff --git a/tests/test_class_oelint_var_badimagefeatures.py b/tests/test_class_oelint_var_badimagefeatures.py index 21ee9d6..0d2251e 100644 --- a/tests/test_class_oelint_var_badimagefeatures.py +++ b/tests/test_class_oelint_var_badimagefeatures.py @@ -22,8 +22,7 @@ def _generate_code(self, var, feature, suffix=''): 'ptest-pkgs', 'serial-autologin-root', 'staticdev-pkgs', - 'tools-debug'] - ) + 'tools-debug']) def test_bad(self, var, feature, id_, occurrence): self.check_for_id(self._create_args(self._generate_code(var, feature)), f'{id_}.{feature}', occurrence) @@ -48,8 +47,7 @@ def test_bad(self, var, feature, id_, occurrence): 'bash-completion-pkgs', 'read-only-rootfs', 'stateless-rootfs', - 'splash',] - ) + 'splash']) def test_good(self, var, feature, id_, occurrence): self.check_for_id(self._create_args(self._generate_code(var, feature)), f'{id_}.{feature}', occurrence) @@ -67,8 +65,7 @@ def test_good(self, var, feature, id_, occurrence): 'ptest-pkgs', 'serial-autologin-root', 'staticdev-pkgs', - 'tools-debug'] - ) + 'tools-debug']) def test_good_remove(self, var, feature, id_, occurrence): self.check_for_id(self._create_args(self._generate_code( var, feature, suffix=':remove')), f'{id_}.{feature}', occurrence) diff --git a/tests/test_class_oelint_var_renamed.py b/tests/test_class_oelint_var_renamed.py index 42873da..18fde9f 100644 --- a/tests/test_class_oelint_var_renamed.py +++ b/tests/test_class_oelint_var_renamed.py @@ -34,8 +34,7 @@ def _generate_code(self, var): 'WHITELIST_GPL-3.0-only', 'WHITELIST_GPL-3.0-or-later', 'WHITELIST_LGPL-3.0-only', - 'WHITELIST_LGPL-3.0-or-later',] - ) + 'WHITELIST_LGPL-3.0-or-later']) def test_bad(self, var, id_, occurrence): self.check_for_id(self._create_args(self._generate_code(var)), id_, occurrence) @@ -65,8 +64,7 @@ def test_bad(self, var, id_, occurrence): 'WHITELIST_GPL-3.0-only', 'WHITELIST_GPL-3.0-or-later', 'WHITELIST_LGPL-3.0-only', - 'WHITELIST_LGPL-3.0-or-later',] - ) + 'WHITELIST_LGPL-3.0-or-later']) def test_bad_older_release(self, var, id_, occurrence): self.check_for_id(self._create_args(self._generate_code(var), ['--release=dunfell']), id_, occurrence) @@ -90,8 +88,7 @@ def test_bad_older_release(self, var, id_, occurrence): 'WHITELIST_GPL-3.0-only', 'WHITELIST_GPL-3.0-or-later', 'WHITELIST_LGPL-3.0-only', - 'WHITELIST_LGPL-3.0-or-later',] - ) + 'WHITELIST_LGPL-3.0-or-later']) def test_fix(self, var, id_): self.fix_and_check(self._create_args_fix(self._generate_code(var)), id_) @@ -101,7 +98,6 @@ def test_fix(self, var, id_): 'TUNEABI_WHITELIST', 'TCLIBCAPPEND', 'VOLATILE_LOG_DIR', - 'VOLATILE_TMP_DIR',] - ) + 'VOLATILE_TMP_DIR']) def test_bad_unfixable(self, var, id_, occurrence): self.check_for_id(self._create_args_fix(self._generate_code(var)), id_, occurrence)