mirror of
https://github.com/rommapp/romm.git
synced 2026-11-30 10:32:57 +01:00
Add tests
This commit is contained in:
@@ -55,6 +55,7 @@ scan:
|
||||
emulatorjs:
|
||||
debug: true
|
||||
cache_limit: 1000
|
||||
keyboard_lock: true
|
||||
disable_auto_unload: true
|
||||
disable_batch_bootup: true
|
||||
netplay:
|
||||
|
||||
@@ -29,6 +29,7 @@ def test_config_loader():
|
||||
assert loader.config.EJS_DISABLE_AUTO_UNLOAD
|
||||
assert loader.config.EJS_DISABLE_BATCH_BOOTUP
|
||||
assert loader.config.EJS_CACHE_LIMIT == 1000
|
||||
assert loader.config.EJS_KEYBOARD_LOCK
|
||||
assert loader.config.EJS_NETPLAY_ENABLED
|
||||
assert loader.config.EJS_NETPLAY_ICE_SERVERS == [
|
||||
{"urls": "stun:stun.relay.metered.ca:80"},
|
||||
@@ -80,6 +81,7 @@ def test_empty_config_loader():
|
||||
assert not loader.config.SKIP_HASH_CALCULATION
|
||||
assert not loader.config.EJS_DEBUG
|
||||
assert loader.config.EJS_CACHE_LIMIT is None
|
||||
assert not loader.config.EJS_KEYBOARD_LOCK
|
||||
assert not loader.config.EJS_DISABLE_AUTO_UNLOAD
|
||||
assert not loader.config.EJS_DISABLE_BATCH_BOOTUP
|
||||
assert not loader.config.EJS_NETPLAY_ENABLED
|
||||
|
||||
Reference in New Issue
Block a user