mirror of
https://github.com/rommapp/romm.git
synced 2026-11-29 10:01:00 +01:00
21 lines
693 B
Python
21 lines
693 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"
|