Skip to content

Commit

Permalink
[reboot] Add newline in the expected output in unit test.
Browse files Browse the repository at this point in the history
Signed-off-by: Yong Zhao <[email protected]>
  • Loading branch information
yozhao101 committed Mar 26, 2021
1 parent 3253dc6 commit 81ea797
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/reboot_cause_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def setup_class(cls):

# Test 'show reboot-cause' without previous-reboot-cause.json
def test_reboot_cause_no_history_file(self):
expected_output = "Unknown"
expected_output = "Unknown\n"
runner = CliRunner()
result = runner.invoke(show.cli.commands["reboot-cause"], [])
assert result.output == expected_output
Expand Down

0 comments on commit 81ea797

Please sign in to comment.