Add game_slug to installer tests

This commit is contained in:
Mathieu Comandon 2015-03-04 15:28:05 +01:00
parent 54133f0cb1
commit 88493b4fcf

View file

@ -15,7 +15,8 @@ class TestScriptInterpreter(TestCase):
script = {
'runner': 'foo',
'installer': 'bar',
'name': 'baz'
'name': 'baz',
'game_slug': 'baz',
}
interpreter = ScriptInterpreter(script, None)
self.assertFalse(interpreter.errors)
@ -25,7 +26,8 @@ class TestScriptInterpreter(TestCase):
script = {
'foo': 'bar',
'installer': {},
'name': 'missing_runner'
'name': 'missing_runner',
'game_slug': 'missing-runner'
}
with self.assertRaises(ScriptingError):
interpreter = ScriptInterpreter(script, None)