mirror of
https://github.com/lutris/lutris
synced 2024-09-05 07:23:32 +00:00
Add game_slug to installer tests
This commit is contained in:
parent
54133f0cb1
commit
88493b4fcf
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue