mirror of
https://github.com/rommapp/romm.git
synced 2026-06-28 06:46:00 +00:00
22 lines
694 B
Python
22 lines
694 B
Python
from fastapi.testclient import TestClient
|
|
|
|
from main import app
|
|
|
|
client = TestClient(app)
|
|
|
|
|
|
def test_config():
|
|
response = client.get("/config")
|
|
assert response.status_code == 200
|
|
|
|
config = response.json()
|
|
assert config.get('EXCLUDED_PLATFORMS') == []
|
|
assert config.get('EXCLUDED_SINGLE_EXT') == []
|
|
assert config.get('EXCLUDED_SINGLE_FILES') == []
|
|
assert config.get('EXCLUDED_MULTI_FILES') == []
|
|
assert config.get('EXCLUDED_MULTI_PARTS_EXT') == []
|
|
assert config.get('EXCLUDED_MULTI_PARTS_FILES') == []
|
|
assert config.get('PLATFORMS_BINDING') == {}
|
|
assert config.get('ROMS_FOLDER_NAME') == 'roms'
|
|
assert config.get('FIRMWARE_FOLDER_NAME') == 'bios'
|