test_commands.py: improve coverage

Add white box test for new behavior of returning None on mismatch.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
This commit is contained in:
Martí Bolívar 2022-08-29 17:15:13 -07:00 committed by Marti Bolivar
parent 08a147b385
commit 36cb8829ad
1 changed files with 1 additions and 0 deletions

View File

@ -14,3 +14,4 @@ def test_parse_git_version():
assert gv(b'git version 2.28.0.windows.1\n') == (2, 28, 0)
assert gv(b'git version 2.24.3 (Apple Git-128)\n') == (2, 24, 3)
assert gv(b'git version 2.29.GIT\n') == (2, 29)
assert gv(b'not a git version') is None