aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unittests/plugin_tests.py
diff options
context:
space:
mode:
authorArif Ali <arif.ali@canonical.com>2024-02-09 00:07:16 +0000
committerJake Hunsaker <jacob.r.hunsaker@gmail.com>2024-02-23 23:32:37 -0500
commite421ee19ae289aa05fa55216bbdf31f59fb6eee1 (patch)
treea20ec8315e991967a693104b54a537f3f3825ff2 /tests/unittests/plugin_tests.py
parent5c8d524666c78718e9245174cb6750a85785ef4a (diff)
downloadsos-e421ee19ae289aa05fa55216bbdf31f59fb6eee1.tar.gz
[pep8][tests] Update flake8 styling
Related: Discussion #3513 Signed-off-by: Arif Ali <arif.ali@canonical.com>
Diffstat (limited to 'tests/unittests/plugin_tests.py')
-rw-r--r--tests/unittests/plugin_tests.py15
1 files changed, 11 insertions, 4 deletions
diff --git a/tests/unittests/plugin_tests.py b/tests/unittests/plugin_tests.py
index acc2df3a..4be93780 100644
--- a/tests/unittests/plugin_tests.py
+++ b/tests/unittests/plugin_tests.py
@@ -13,7 +13,8 @@ import random
from io import StringIO
-from sos.report.plugins import Plugin, regex_findall, _mangle_command, PluginOpt
+from sos.report.plugins import (Plugin, regex_findall,
+ _mangle_command, PluginOpt)
from sos.archive import TarFileArchive
from sos.policies.distros import LinuxPolicy
from sos.policies.init_systems import InitSystem
@@ -213,7 +214,7 @@ class PluginTests(unittest.TestCase):
'devices': {}
})
self.assertEqual(p.get_description(),
- "This plugin has a description.")
+ "This plugin has a description.")
def test_set_plugin_option(self):
p = MockPlugin({
@@ -394,11 +395,17 @@ class AddCopySpecTests(unittest.TestCase):
shutil.rmtree(tmpdir)
def test_multiple_files_no_limit(self):
- self.mp.add_copy_spec(['tests/unittests/tail_test.txt', 'tests/unittests/test.txt'])
+ self.mp.add_copy_spec([
+ 'tests/unittests/tail_test.txt',
+ 'tests/unittests/test.txt',
+ ])
self.assertEqual(len(self.mp.copy_paths), 2)
def test_multiple_files_under_limit(self):
- self.mp.add_copy_spec(['tests/unittests/tail_test.txt', 'tests/unittests/test.txt'], 1)
+ self.mp.add_copy_spec([
+ 'tests/unittests/tail_test.txt',
+ 'tests/unittests/test.txt',
+ ], 1)
self.assertEqual(len(self.mp.copy_paths), 2)