Updated to main branch. Removed cluttering asyncio and httpx log messages

This commit is contained in:
Qubasa
2023-10-27 23:36:45 +02:00
parent 410b7c1158
commit 00ef406713
12 changed files with 113 additions and 129 deletions

View File

@@ -1,3 +1,5 @@
import logging
import pytest
from fastapi.testclient import TestClient
@@ -7,4 +9,6 @@ from clan_cli.webui.app import app
# TODO: Why stateful
@pytest.fixture(scope="session")
def api() -> TestClient:
logging.getLogger("httpx").setLevel(level=logging.WARNING)
logging.getLogger("asyncio").setLevel(logging.INFO)
return TestClient(app)