Add tests

This commit is contained in:
Matthew Turk
2026-02-21 14:34:49 -06:00
parent 9b51df96a8
commit 5d21c6fefe
2 changed files with 3 additions and 0 deletions

View File

@@ -55,6 +55,7 @@ scan:
emulatorjs:
debug: true
cache_limit: 1000
keyboard_lock: true
disable_auto_unload: true
disable_batch_bootup: true
netplay:

View File

@@ -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