refactor: 优化参数传递,清理导入样式

This commit is contained in:
2026-04-03 22:06:32 +08:00
parent 3a7d98a950
commit 0852b852f8
51 changed files with 299 additions and 434 deletions
+3 -1
View File
@@ -1,8 +1,10 @@
"""Shared fixtures for inference tests."""
import pytest
from unittest.mock import MagicMock, patch
import pytest
from fastapi.testclient import TestClient
from astrai.inference.server import app
-3
View File
@@ -1,9 +1,6 @@
"""Unit tests for the inference HTTP server."""
import pytest
from unittest.mock import MagicMock, patch
from fastapi.testclient import TestClient
from astrai.inference.server import app
def test_health_no_model(client, monkeypatch):