19 lines
310 B
Python
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()
|