File tree 1 file changed +9
-3
lines changed
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -62,13 +62,19 @@ def test_temperature(self):
62
62
with mock .patch ('utilities_common.cli.run_command' ) as mock_run_command :
63
63
CliRunner ().invoke (show .cli .commands ['platform' ].commands ['temperature' ], [])
64
64
assert mock_run_command .call_count == 1
65
- mock_run_command .assert_called_with (['tempershow' ], display_cmd = False )
65
+ mock_run_command .assert_called_with (['tempershow' ])
66
66
67
- def test_all_temperature_json (self ):
67
+ def test_temperature_json (self ):
68
68
with mock .patch ('utilities_common.cli.run_command' ) as mock_run_command :
69
69
CliRunner ().invoke (show .cli .commands ['platform' ].commands ['temperature' ], ['--json' ])
70
70
assert mock_run_command .call_count == 1
71
- mock_run_command .assert_called_with (['tempershow' , '-j' ], display_cmd = False )
71
+ mock_run_command .assert_called_with (['tempershow' , '-j' ])
72
+
73
+ def test_temperature_short_json (self ):
74
+ with mock .patch ('utilities_common.cli.run_command' ) as mock_run_command :
75
+ CliRunner ().invoke (show .cli .commands ['platform' ].commands ['temperature' ], ['-j' ])
76
+ assert mock_run_command .call_count == 1
77
+ mock_run_command .assert_called_with (['tempershow' , '-j' ])
72
78
73
79
74
80
class TestShowPlatformPsu (object ):
You can’t perform that action at this time.
0 commit comments