Skip to content

Commit 7c4df90

Browse files
committed
add unit test
Signed-off-by: hwassman <[email protected]>
1 parent 5cda23d commit 7c4df90

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

tests/test_params.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88

99
def my_setup():
10-
global a, b, c, d, e, f, g, m, n, o, p, y, r, s
10+
global a, b, c, d, e, f, g, m, n, o, p, y, r, s, w, v
1111
a = ConfigManager().defaults
1212
y = ConfigManager().defaults.copy()
1313
y['apiKeyValue'] = '/tmp/mykey'
@@ -18,6 +18,7 @@ def my_setup():
1818
m, n = parse_cmd_args(['-d', 'yes'])
1919
o, p = parse_cmd_args(['-v', 'e40960c9-de0a-4c75-bc71-0bcae6db23b2'])
2020
r, s = parse_cmd_args(['-p', '4242', '-e', '9250'])
21+
w, v = parse_cmd_args(['-w', 'False'])
2122

2223

2324
@with_setup(my_setup)
@@ -199,3 +200,12 @@ def test_case16():
199200
assert 'password' not in result.keys()
200201
assert valid
201202
assert len(msg) == 0
203+
204+
205+
@with_setup(my_setup)
206+
def test_case17():
207+
if version >= "8.0":
208+
result = merge_defaults_and_args(a, w)
209+
assert len(result.keys()) > 0
210+
assert 'rawCounters' in result.keys()
211+
assert result.get('rawCounters') == eval("False")

0 commit comments

Comments
 (0)