msys2-web/tests/test_api.py
Christoph Reiter 0e57b832e5 Add some API for getting the packages to build
This is just a first draft.
2020-07-10 09:45:49 +02:00

19 lines
310 B
Python

# type: ignore
import os
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/buildqueue').raise_for_status()