From 32c316fda676e36e8e2f85409b624c925e37cff0 Mon Sep 17 00:00:00 2001 From: Rosalie Wanders Date: Sun, 21 Jan 2024 00:39:07 +0100 Subject: [PATCH] SporeModManager: add more uninstall range tests to test.py --- SporeModManager/test.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/SporeModManager/test.py b/SporeModManager/test.py index ff06976..5a3b7f7 100755 --- a/SporeModManager/test.py +++ b/SporeModManager/test.py @@ -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