File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -34,24 +34,24 @@ def test_hostname_plugin_row_shape():
34
34
# SYSTEM KERNEL FUNCTIONS ONLY WORK ON LINUX
35
35
def test_systemkernel_plugin_type ():
36
36
plug = SystemKernel ()
37
- assert type (plug .output_collector [ "SystemKernel" ] ) == collections .OrderedDict
37
+ assert type (plug .output_collector ) == collections .OrderedDict
38
38
39
39
def test_systemkernel_plugin_adds_rows ():
40
40
plug = SystemKernel ()
41
41
plug .add_rows ()
42
42
plug .add_rows ()
43
43
44
- for key , val in plug .output_collector [ "SystemKernel" ] .items ():
44
+ for key , val in plug .output_collector .items ():
45
45
assert len (val ) == 2
46
46
47
47
# 1 SystemKernel column + 4 inherited Env cols
48
- assert len (plug .output_collector [ "SystemKernel" ] .keys ()) == 5
48
+ assert len (plug .output_collector .keys ()) == 5
49
49
50
50
def test_systemkernel_plugin_blob_is_big ():
51
51
plug = SystemKernel ()
52
52
plug .add_rows ()
53
53
54
- blob = plug .output_collector ["SystemKernel" ][ " kernel_info" ][0 ]
54
+ blob = plug .output_collector ["kernel_info" ][0 ]
55
55
info_dict = loads (blob )
56
56
57
57
# dict should have more than 1000 (~7000) keys
You can’t perform that action at this time.
0 commit comments