diff options
author | Bryan Quigley <code@bryanquigley.com> | 2020-08-11 17:25:18 -0700 |
---|---|---|
committer | Jake Hunsaker <jhunsake@redhat.com> | 2020-08-13 10:14:16 -0400 |
commit | 85b4e423cc23d7ba316d44b665b42a71f1324670 (patch) | |
tree | a57cbe035780b02ce0a93e39f3316ebb266bf006 /tests/plugin_tests.py | |
parent | a80825dbb9e28306d9d2dac8114f00f03cce0c9a (diff) | |
download | sos-85b4e423cc23d7ba316d44b665b42a71f1324670.tar.gz |
[general] flake8 first pass
Signed-off-by: Bryan Quigley <code@bryanquigley.com>
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
Diffstat (limited to 'tests/plugin_tests.py')
-rw-r--r-- | tests/plugin_tests.py | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/tests/plugin_tests.py b/tests/plugin_tests.py index 2e2e6abd..9290003a 100644 --- a/tests/plugin_tests.py +++ b/tests/plugin_tests.py @@ -15,7 +15,6 @@ from io import StringIO from sos.report.plugins import Plugin, regex_findall, _mangle_command from sos.archive import TarFileArchive from sos.policies import LinuxPolicy, InitSystem -import sos.policies PATH = os.path.dirname(__file__) @@ -196,7 +195,7 @@ class PluginTests(unittest.TestCase): }) self.assertEquals(p.get_description(), "<no description available>") - def test_plugin_no_descrip(self): + def test_plugin_has_descrip(self): p = NamedMockPlugin({ 'sysroot': self.sysroot, 'policy': LinuxPolicy(init=InitSystem(), probe_runtime=False), @@ -339,7 +338,6 @@ class AddCopySpecTests(unittest.TestCase): 'cmdlineopts': MockOptions(), 'policy': LinuxPolicy(init=InitSystem(), probe_runtime=False), 'sysroot': os.getcwd(), - 'cmdlineopts': MockOptions(), 'devices': {} }) self.mp.archive = MockArchive() @@ -383,8 +381,8 @@ class AddCopySpecTests(unittest.TestCase): def test_glob_file_limit_no_limit(self): self.mp.sysroot = '/' tmpdir = tempfile.mkdtemp() - fn = create_file(2, dir=tmpdir) - fn2 = create_file(2, dir=tmpdir) + create_file(2, dir=tmpdir) + create_file(2, dir=tmpdir) self.mp.add_copy_spec(tmpdir + "/*") self.assertEquals(len(self.mp.copy_paths), 2) shutil.rmtree(tmpdir) @@ -392,8 +390,8 @@ class AddCopySpecTests(unittest.TestCase): def test_glob_file_over_limit(self): self.mp.sysroot = '/' tmpdir = tempfile.mkdtemp() - fn = create_file(2, dir=tmpdir) - fn2 = create_file(2, dir=tmpdir) + create_file(2, dir=tmpdir) + create_file(2, dir=tmpdir) self.mp.add_copy_spec(tmpdir + "/*", 1) self.assertEquals(len(self.mp.copy_strings), 1) content, fname = self.mp.copy_strings[0] |