mirror of
https://github.com/lutris/lutris
synced 2024-11-02 10:19:50 +00:00
Add game_slug to installer tests
This commit is contained in:
parent
54133f0cb1
commit
88493b4fcf
1 changed files with 4 additions and 2 deletions
|
@ -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