aboutsummaryrefslogtreecommitdiffstats
path: root/tests/option_tests.py
diff options
context:
space:
mode:
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']