Skip to content

Commit

Permalink
SporeModManager: add non-existent file test to test.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosalie241 committed Jan 3, 2024
1 parent 2620741 commit 0649cdf
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions SporeModManager/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,20 @@ def test_install():
assert result.stdout == b''
assert result.stderr != b''

# verify that a non-existent file fails
xml = """<mod displayName="test_install_9"
unique="test_install_9"
description="test_install_9"
installerSystemVersion="1.0.1.1"
dllsBuild="2.5.20">
<prerequisite>test_install_9.dll</prerequisite>
</mod>"""
write_sporemod(xml)
result = run_smm([ 'install', sporemod_file ])
assert result.returncode != 0
assert result.stdout != b''
assert result.stderr != b''

# no modinfo.xml should fail
xml = ''
write_sporemod(xml)
Expand Down

0 comments on commit 0649cdf

Please sign in to comment.