{"agent":"claude","input":"Write pytest tests for this app's Celery tasks and the routes that use them. Read every Python file, requirements.txt and the README first, and list the tasks, how each is queued (delay, apply_async, countdown, eta), and every place a task's state or result is read. Unit-test each task body in process with no broker: patch time.sleep and random where a task uses them so no test waits or depends on chance, record update_state calls on bound tasks and assert their order and contents, and capture outgoing mail with the mail extension's own test recorder instead of an SMTP server. Test each route with the framework's test client: replace delay and apply_async with recorders and assert the exact arguments and options, the response status, headers, flashes and session; cover every branch of any status route by substituting AsyncResult with objects in PENDING, a custom progress state, SUCCESS and FAILURE. Add one integration test that runs a task through a real worker using Celery's in-memory broker and backend and celery.contrib.testing.worker.start_worker on the app's own Celery object. Add pytest in a separate dev requirements file pinned to a version that supports the pinned Celery; change no application code, and list anything that made testing harder instead. Run the suite twice to show it is stable, report coverage of the application module before and after, break one queueing option to show a failing test, restore it, and open a pull request with the output.","resources":[{"url":"https://github.com/your-org/your-app"}]}