Files
manual_slop/tests/test_gui_fixture_green.py

22 lines
671 B
Python

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