Not as it stands, but it is close: three fixes of a few lines each need to go in before the merge, and all three are doable today. I only read `export_job.py`; I did not run it or open `test_export_job.py`, so the test coverage comment relies on the docstring.

The structure is good: fetch, write, upload and run are small and separate, the query is parameterised, and the date window is half-open so there is no double counting at midnight.

## Fix before merging

1. **A failed export looks like a successful one to cron.** `export_job.py:56` catches every exception, logs one line and exits with code 0. For example, if the finance endpoint returns a 500 at 02:00, the job exits 0, no alert fires and finance has no file. It should exit non-zero with the traceback: use `log.exception(...)` and then `raise`.

2. **Every customer's email address is written to the log.** `export_job.py:52` logs `[row[1] for row in rows]`, so a night with 4,000 paid invoices puts 4,000 email addresses in one log line. The count and date are enough; drop the list.

3. **The upload can hang forever.** `requests.post` at `export_job.py:42` has no timeout. If the finance endpoint accepts the connection and never responds, the job sits there holding the database connection open, and the next night's run starts alongside it. Add `timeout=(10, 120)` or similar.

## Worth doing soon, not blocking

- **A missed day cannot be re-run.** `run()` always exports yesterday, so if Tuesday's run fails, Wednesday's run exports Tuesday's invoices never. An optional date argument fixes this.
- **Nothing logs at the moment.** No handler is configured, so the "exporting" and "export finished" lines go nowhere; only errors reach stderr. Add `logging.basicConfig(level=logging.INFO)` under `__main__`.
- **Amounts are formatted inconsistently.** `amount_cents / 100` writes 2000 cents as `20.0` and 1999 cents as `19.99`. `f"{amount_cents / 100:.2f}"` gives `20.00`.
- **Tests cover only the CSV header and one row.** The date window in `fetch_invoices`, a failed upload and the exit behaviour of `run()` are untested, and fix 1 deserves a test with it.
- **Importing the module needs `FINANCE_UPLOAD_URL` set**, because it is read at import time on line 16. Reading it inside `upload()` makes the tests easier to write.

## Check, I could not tell from the file

- **Which timezone "yesterday" means.** `date.today()` uses the server's local time, and the comparison against `paid_at` uses the database session's timezone. If those differ, invoices paid near midnight land in the wrong day's file, or in none.
- **Whether the finance endpoint needs authentication.** The upload sends no credentials, which is fine only if the URL itself carries a token or the endpoint is network-restricted.

VERDICT: READY WITH CHANGES
