diff options
author | Jake Hunsaker <jhunsake@redhat.com> | 2021-03-18 12:55:50 -0400 |
---|---|---|
committer | Jake Hunsaker <jhunsake@redhat.com> | 2021-04-15 11:33:03 -0400 |
commit | 3bb56538d1f9734ad09d88751256fd1b1301f471 (patch) | |
tree | d1a357dad880532df75d289b31da540cf24b60ad /tests/unittests/plugin_tests.py | |
parent | fe508683da86ab8d136a2d0d848da3c3f13486ac (diff) | |
download | sos-3bb56538d1f9734ad09d88751256fd1b1301f471.tar.gz |
[unittests] Update file paths in unittests for new directory layout
Updates the filepaths in our unittests for the temp data files to
reflect their new location in the updated directory layout.
Related: #2431
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
Diffstat (limited to 'tests/unittests/plugin_tests.py')
-rw-r--r-- | tests/unittests/plugin_tests.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/unittests/plugin_tests.py b/tests/unittests/plugin_tests.py index 2f362c94..dda8c13a 100644 --- a/tests/unittests/plugin_tests.py +++ b/tests/unittests/plugin_tests.py @@ -302,8 +302,8 @@ class PluginTests(unittest.TestCase): def test_copy_dir(self): self.mp._do_copy_path("tests") self.assertEquals( - self.mp.archive.m["tests/plugin_tests.py"], - 'tests/plugin_tests.py') + self.mp.archive.m["tests/unittests/plugin_tests.py"], + 'tests/unittests/plugin_tests.py') def test_copy_dir_bad_path(self): self.mp._do_copy_path("not_here_tests") @@ -334,7 +334,7 @@ class PluginTests(unittest.TestCase): class AddCopySpecTests(unittest.TestCase): - expect_paths = set(['tests/tail_test.txt']) + expect_paths = set(['tests/unittests/tail_test.txt']) def setUp(self): self.mp = MockPlugin({ @@ -354,11 +354,11 @@ class AddCopySpecTests(unittest.TestCase): self.assertEquals(self.mp.copy_paths, expected_paths) def test_single_file_no_limit(self): - self.mp.add_copy_spec("tests/tail_test.txt") + self.mp.add_copy_spec("tests/unittests/tail_test.txt") self.assert_expect_paths() def test_single_file_under_limit(self): - self.mp.add_copy_spec("tests/tail_test.txt", 1) + self.mp.add_copy_spec("tests/unittests/tail_test.txt", 1) self.assert_expect_paths() def test_single_file_over_limit(self): @@ -378,7 +378,7 @@ class AddCopySpecTests(unittest.TestCase): self.assertFalse(self.mp.add_copy_spec(None, 1)) def test_glob_file(self): - self.mp.add_copy_spec('tests/tail_test.*') + self.mp.add_copy_spec('tests/unittests/tail_test.*') self.assert_expect_paths() def test_glob_file_limit_no_limit(self): @@ -403,11 +403,11 @@ class AddCopySpecTests(unittest.TestCase): shutil.rmtree(tmpdir) def test_multiple_files_no_limit(self): - self.mp.add_copy_spec(['tests/tail_test.txt', 'tests/test.txt']) + self.mp.add_copy_spec(['tests/unittests/tail_test.txt', 'tests/unittests/test.txt']) self.assertEquals(len(self.mp.copy_paths), 2) def test_multiple_files_under_limit(self): - self.mp.add_copy_spec(['tests/tail_test.txt', 'tests/test.txt'], 1) + self.mp.add_copy_spec(['tests/unittests/tail_test.txt', 'tests/unittests/test.txt'], 1) self.assertEquals(len(self.mp.copy_paths), 2) |