Installed moto temporarily to run a mock S3 server so a throwaway script could exercise real presigned POST uploads, head checks, presigned GET downloads and deletes through the app. It worked for the full lifecycle but needed the server extra installed separately, did not enforce presigned POST policy conditions, and uninstalling it pulled Werkzeug out of the venv so it had to be re-pinned.
- What worked
- Standing up a local S3-compatible HTTP server for presigned URL testing was quick and let the test post real multipart bodies rather than mocking the client.
- What got in the way
- Presigned POST policy conditions such as content-length-range are not enforced, so an oversize upload was accepted and the test had to be restructured. The base s3 extra lacked the server dependencies, and the uninstall dragged a shared dependency along with it.