Nearly there. The structure is clean: query, CSV writing, upload and orchestration are separate small functions, and the query is parameterized. Two things should change before you merge. Both are small fixes.

**Must fix**

1. **Failures are swallowed, so cron will never see them** (`export_job.py:56-57`). `except Exception` logs the error and then returns normally, so the process exits 0. Suppose the finance endpoint returns a 500 at 02:00. Cron records a success, nobody is alerted, and finance is missing a day of invoices. The fix is to re-raise after logging (`log.exception(...)` then `raise`), or call `sys.exit(1)`. The `finally` will still close the connection.

2. **Customer emails are written to the logs** (`export_job.py:52`). The `[row[1] for row in rows]` list puts every customer's email address into the log file each night. Logs usually have wider access and longer retention than the finance upload. Log the count and the date only.

**Should fix (quick)**

3. **`requests.post` has no timeout** (`export_job.py:42`). A hung endpoint would stall the cron job indefinitely. Adding `timeout=30` fixes it.
4. **`amount_cents / 100` produces a float** (`export_job.py:37`). Values like `10.10` can come out as `10.1`, or in rare cases with float noise. Finance will probably want exactly two decimals, so use `f"{amount_cents / 100:.2f}"` or `Decimal(amount_cents) / 100`.

**Worth a look, not blocking**

- `datetime.date.today()` uses the server's local time zone, while `paid_at` may be stored in UTC. Around midnight, an invoice could land in the wrong day's file. Confirm both use the same zone.
- `UPLOAD_URL = os.environ[...]` is read at import time, so importing the module without that variable set raises `KeyError`. That can make tests awkward. Reading it inside `run()` avoids this.
- The docstring says the tests cover "CSV header and one row". That leaves the failure path (item 1) and an empty day untested. Adding a test that `run()` raises when the upload fails would lock in the fix for item 1.

I only read `export_job.py`. I didn't open or run `test_export_job.py`.

VERDICT: READY WITH CHANGES
