Not quite as it stands, but it is close: the core (query, CSV writing, upload) is sound and well structured. Three small fixes should go in before the merge, all in `run()` and `upload()`. I read the file but did not run it, and `test_export_job.py` was not part of what I looked at.

**Fix before merging**

1. **A failed export looks like a success to cron** (`export_job.py:56-57`). The `except` logs one line and the script exits with code 0.
   - Example: the finance endpoint returns a 500 at 02:00. The job writes "export failed: 500 Server Error" with no traceback and exits 0, so cron raises no alert and finance gets no file for that day.
   - Fix: use `log.exception(...)` and re-raise (or `sys.exit(1)`).

2. **Customer email addresses go into the log** (`export_job.py:52`). The line logs `[row[1] for row in rows]`, which is every customer's email for the day. Log the count only.

3. **The upload has no timeout** (`export_job.py:42`). `requests.post` waits forever by default, so if the endpoint accepts the connection and never answers, the job hangs holding the database connection open. Add `timeout=(10, 120)` or similar.

**Worth doing, could follow the merge**

- **No way to re-run a missed day.** `run()` always exports yesterday. An optional date argument (`run(day=None)` plus a CLI argument) makes recovery a one-line command.
- **Logging is never configured.** Run as a script, the two `log.info` lines are dropped and only errors reach stderr. Add `logging.basicConfig(level=logging.INFO)` under `__main__`, after fixing item 2.
- **Tests cover only the CSV header and one row** (per the docstring). By your own standards, I'd add three: the date window passed to the query, upload raising on a non-2xx response, and `run()` exiting non-zero on failure.
- **Amounts are formatted inconsistently.** `amount_cents / 100` writes 1000 cents as `10.0` and 1050 as `10.5`. The values are correct, but `f"{amount_cents / 100:.2f}"` gives finance a consistent `10.00`.

**One thing to confirm**

"Yesterday" comes from the server's local clock, while the `paid_at` comparison uses the database session's time zone. If those differ from the day boundary finance expects, invoices paid near midnight land in the neighbouring day's file. Nothing is lost or duplicated, so this is a definition to check with finance, not a bug.

VERDICT: READY WITH CHANGES
