Add version to test installers

This commit is contained in:
Mathieu Comandon 2017-04-18 17:45:17 -07:00
parent 4ea44915e5
commit d99e942557

View file

@ -19,6 +19,7 @@ class TestScriptInterpreter(TestCase):
'name': 'Doom',
'slug': 'doom',
'game_slug': 'doom',
'version': 'doom-gzdoom'
}
interpreter = ScriptInterpreter(installer, None)
self.assertFalse(interpreter.errors)
@ -29,7 +30,8 @@ class TestScriptInterpreter(TestCase):
'foo': 'bar',
'script': [],
'name': 'missing_runner',
'game_slug': 'missing-runner'
'game_slug': 'missing-runner',
'version': 'bar-baz'
}
with self.assertRaises(ScriptingError):
interpreter = ScriptInterpreter(script, None)