iOSBuildServer/tests/test_api_apps.py
shen 6f4f625c56 Initial commit: iOS Build Server
- FastAPI backend with build queue, WebSocket logs, task management
- Vue 3 frontend with build/config/history views
- Xcode project build automation with IPA export
- Fix: initialize build_dir before try block to ensure cleanup on early failure
2026-06-06 17:42:27 +08:00

22 lines
536 B
Python

"""打包选择接口测试(只读)"""
def test_get_apps(client, tmp_config):
resp = client.get("/api/apps")
assert resp.status_code == 200
assert "1" in resp.json()
def test_get_schemes(client, tmp_config):
resp = client.get("/api/schemes")
assert resp.status_code == 200
assert "1" in resp.json()
def test_get_branches(client, tmp_config):
resp = client.get("/api/branches")
assert resp.status_code == 200
branches = resp.json()
assert "main" in branches
assert "dev" in branches