aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2019-11-01 16:53:29 +0000
committerBryn M. Reeves <bmr@redhat.com>2019-11-01 16:53:29 +0000
commit801c71b33dcfeaa980baa9f377b721bdd26aa5e8 (patch)
treee5bcaa86057353e33e633c838b75cf194ef43539 /tests
parent05f3d5bda8f548459fabcd38f2d087d6ecef98a2 (diff)
downloadsos-801c71b33dcfeaa980baa9f377b721bdd26aa5e8.tar.gz
[tests] fix test_copy_dir_forbidden_path
Rather than call just Plugin.setup() and Plugin._do_copy_path(), add an add_copy_spec() call to the mock plugin setup() method, and invoke copying by calling the Plugin.collect() method. Related: #1845 Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/plugin_tests.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/plugin_tests.py b/tests/plugin_tests.py
index b8760429..6522fe14 100644
--- a/tests/plugin_tests.py
+++ b/tests/plugin_tests.py
@@ -81,6 +81,7 @@ class ForbiddenMockPlugin(Plugin):
plugin_name = "forbidden"
def setup(self):
+ self.add_copy_spec("tests")
self.add_forbidden_path("tests")
@@ -235,7 +236,7 @@ class PluginTests(unittest.TestCase):
})
p.archive = MockArchive()
p.setup()
- p._do_copy_path("tests")
+ p.collect()
self.assertEquals(p.archive.m, {})