It's close, and the structure is good: small functions, a parameterized query, and the DB, CSV and upload steps are cleanly separated. I'd fix two things before merging, and both are small. I only read `export_job.py`. I didn't run it or open `test_export_job.py`.

**Fix before merging**

1. **A failed export looks like a success to cron.** `run()` catches every exception (line 56) and logs a one-line message. The process then exits 0, and the log has no traceback.
   - Case: the finance endpoint returns a 500 at 02:00. The job logs "export failed", cron sees a clean exit, nobody is alerted, and finance has no file for that day.
   - Fix: log with `log.exception(...)` and re-raise, or call `sys.exit(1)`. Then your cron wrapper can alert on it.

2. **Customer emails go into the logs.** Line 52 logs `[row[1] for row in rows]`, which is every customer's email address, at INFO level.
   - Fix: log only the count and the date, which the same line already does.

**Worth doing now (small)**

3. **`requests.post` has no timeout (line 42).** If the endpoint hangs, the job hangs. Add something like `timeout=30`.
4. **Amounts are written as floats.** `amount_cents / 100` gives `10.0` for 1000 cents and `19.99` for 1999. A finance system may expect a consistent `10.00`. Use `Decimal(amount_cents) / 100` and format to two decimals, or write `f"{amount_cents // 100}.{amount_cents % 100:02d}"`.
5. **Test coverage is thin.** The docstring says the tests cover the header and one row. These cases are missing:
   - zero invoices
   - an upload failure, which would lock in fix 1
   - a paid_at exactly at midnight, to check the day boundary
   - the amount formatting from item 4

**Check, but may be fine**

- `date.today()` uses the cron host's timezone, while the `paid_at` comparison uses the database session's timezone. If they differ, "yesterday" can shift by hours. Pinning both to UTC would settle it.
- `UPLOAD_URL = os.environ[...]` is read at import time, so importing the module in a test fails unless the variable is set. Reading it inside `run()` avoids that.

The two fixes are about ten lines, plus tests. Merging tomorrow is realistic.

VERDICT: READY WITH CHANGES
