aboutsummaryrefslogtreecommitdiffstats
path: root/tests/option_tests.py
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2019-02-21 17:45:57 +0000
committerBryn M. Reeves <bmr@redhat.com>2019-03-22 18:31:09 +0000
commit2edf2bcde427b3c987e798d2589e768cb4c1830e (patch)
tree8f017d898230923fb4f51ba0c45550fee4855396 /tests/option_tests.py
parentb0ff91b125acafdb81b3a9e840622e5fbd5ab2c0 (diff)
downloadsos-2edf2bcde427b3c987e798d2589e768cb4c1830e.tar.gz
[sos] Implement sosreport --dry-run
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
Diffstat (limited to 'tests/option_tests.py')
-rw-r--r--tests/option_tests.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/option_tests.py b/tests/option_tests.py
index a99be4b0..3912375d 100644
--- a/tests/option_tests.py
+++ b/tests/option_tests.py
@@ -6,12 +6,19 @@ from sos.plugins import Plugin
from sos.policies import LinuxPolicy
+class MockOptions(object):
+ all_logs = False
+ dry_run = False
+ log_size = 25
+
+
class GlobalOptionTest(unittest.TestCase):
def setUp(self):
self.commons = {
'sysroot': '/',
'policy': LinuxPolicy(),
+ 'cmdlineopts': MockOptions()
}
self.plugin = Plugin(self.commons)
self.plugin.opt_names = ['baz', 'empty', 'test_option']