Files
civitai__civitai/tests/fixtures
Zachary Lowden 10a65819ce test(preview): cover posting an image via direct upload (real B2 presigned PUT) (#2494)
Drives the 3-leg direct-upload handshake request-side: POST /api/v1/image-upload
(server mints key + presigned B2 PUT url; preview has real S3_IMAGE_B2_* creds) ->
PUT the bytes to Backblaze B2 via the presigned url (the load-bearing integration a
service test can't cover) -> post.createWithImages(publish:true) attaches the row by
the B2 key and publishes -> read back via post.getEdit (publishedAt + images.length).
Asserts the upload+attach+publish DB path; NOT public-feed visibility (ingestion stays
Pending in preview, by design). Tiny 1x1 PNG fixture. Role: tester. Report-only.
2026-06-12 12:45:05 -05:00
..