conductor(checkpoint): Checkpoint end of Phase 1: Infrastructure & Core Utilities
This commit is contained in:
21
tests/test_gui_fixture_green.py
Normal file
21
tests/test_gui_fixture_green.py
Normal file
@@ -0,0 +1,21 @@
|
||||
import pytest
|
||||
import requests
|
||||
|
||||
def test_gui_fixture_auto_starts(live_gui):
|
||||
"""
|
||||
Verifies that the live_gui fixture correctly starts the GUI
|
||||
and the hook server is reachable on port 8999.
|
||||
"""
|
||||
response = requests.get("http://127.0.0.1:8999/status")
|
||||
assert response.status_code == 200
|
||||
data = response.json()
|
||||
assert data["status"] == "ok"
|
||||
|
||||
def test_get_performance_metrics(live_gui):
|
||||
"""
|
||||
Verifies that we can retrieve performance metrics via the hook server.
|
||||
"""
|
||||
response = requests.get("http://127.0.0.1:8999/api/performance")
|
||||
assert response.status_code == 200
|
||||
data = response.json()
|
||||
assert "performance" in data
|
||||
Reference in New Issue
Block a user