Skip to content

Commit

Permalink
SporeModManager: add more uninstall range tests to test.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosalie241 committed Jan 20, 2024
1 parent 712d2e1 commit 32c316f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions SporeModManager/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,18 @@ def test_uninstall():
assert result.stdout != b''
assert result.stderr == b''

# uninstall with a range with numbers + letters shouldn't work
result = run_smm([ 'uninstall', '0x1-1x0'])
assert result.returncode != 0
assert result.stdout == b''
assert result.stderr != b''

# uninstall with a range with letters shouldn't work
result = run_smm([ 'uninstall', 'a-b'])
assert result.returncode != 0
assert result.stdout == b''
assert result.stderr != b''

# uninstall with an invalid range shouldn't work
result = run_smm([ 'uninstall', '0-30'])
assert result.returncode != 0
Expand Down

0 comments on commit 32c316f

Please sign in to comment.