14 lines
499 B
Python
14 lines
499 B
Python
import pytest
|
|
import subprocess
|
|
import time
|
|
import requests
|
|
|
|
def test_gui_fixture_auto_starts():
|
|
# This test should fail if the fixture isn't working yet.
|
|
# It attempts to reach the hook server without starting it manually.
|
|
try:
|
|
response = requests.post("http://localhost:5000/get_ui_performance", json={})
|
|
assert response.status_code == 200
|
|
except requests.exceptions.ConnectionError:
|
|
pytest.fail("Hook server is not running. Fixture failed or is missing.")
|