Skip to content

Commit d15138d

Browse files
committed
Update test_tycmd.py
1 parent 996e7a5 commit d15138d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/test_tycmd.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ def test_list_boards(mock_check_output):
4848

4949
def test_version():
5050
assert tycmd.version() == tycmd._TYCMD_VERSION
51+
with (
52+
patch("tycmd.check_output", return_value="invalid") as _,
53+
pytest.raises(RuntimeError),
54+
):
55+
tycmd.version()
5156

5257

5358
def test__parse_firmware_file():

0 commit comments

Comments
 (0)