feat: add resource library and real image workflow

This commit is contained in:
afei A
2026-03-29 00:24:29 +08:00
parent eeaff269eb
commit 04da401ab4
38 changed files with 3033 additions and 117 deletions

View File

@@ -20,6 +20,13 @@ async def api_runtime(tmp_path, monkeypatch):
db_path = tmp_path / "test.db"
monkeypatch.setenv("DATABASE_URL", f"sqlite+aiosqlite:///{db_path.as_posix()}")
monkeypatch.setenv("AUTO_CREATE_TABLES", "true")
monkeypatch.setenv("S3_ACCESS_KEY", "test-access")
monkeypatch.setenv("S3_SECRET_KEY", "test-secret")
monkeypatch.setenv("S3_BUCKET", "test-bucket")
monkeypatch.setenv("S3_REGION", "ap-southeast-1")
monkeypatch.setenv("S3_ENDPOINT", "https://s3.example.com")
monkeypatch.setenv("S3_CNAME", "images.example.com")
monkeypatch.setenv("IMAGE_GENERATION_PROVIDER", "mock")
get_settings.cache_clear()
await dispose_database()
@@ -41,4 +48,3 @@ async def api_runtime(tmp_path, monkeypatch):
set_temporal_client(None)
await dispose_database()
get_settings.cache_clear()