msys2-web/tests/test_api.py
Christoph Reiter 13fb300840 Remove the old buildqueue API
No longer used by autobuild
2021-08-26 08:07:42 +02:00

21 lines
346 B
Python

# type: ignore
import os
os.environ["NO_MIDDLEWARE"] = "1"
import pytest
from app import app
from fastapi.testclient import TestClient
@pytest.fixture
def client():
os.environ["NO_UPDATE_THREAD"] = "1"
with TestClient(app) as client:
yield client
def test_api(client):
client.get('/api/buildqueue2').raise_for_status()