Not as it stands: three small fixes are needed before merge, all doable today. The overall structure (fetch, write, upload as separate small functions, parameterised query, half-open date range) is sound. I reviewed only `export_job.py` by reading it; I did not run it or open `test_export_job.py`, so the test comments rely on the docstring.

## Must fix before merge

1. **A failed export looks like a successful one** (`export_job.py:56-57`). The `except Exception` logs one line and the script exits with code 0.
   - Example: the finance endpoint returns a 500 at 02:00. Cron sees success, no alert fires, and finance has no file for that day. The expected behaviour is a non-zero exit so the failure is noticed.
   - Fix: use `log.exception(...)` to keep the traceback, then re-raise.

2. **Customer emails are written to the logs** (`export_job.py:52`). The info line logs the email of every invoice exported, every night. That puts personal data in log storage, and the line grows with invoice count. Log the count and the day only.

3. **The upload has no timeout** (`export_job.py:42`). `requests.post` waits forever by default. If the endpoint hangs, the job hangs while holding the database connection open, and the next night's run starts on top of it. Add `timeout=(10, 120)` or similar.

## Should fix, could follow in a second PR

- **No way to re-run a missed day.** `run()` always computes yesterday. Accepting an optional date argument makes backfilling a one-line command.
- **Amounts are formatted inconsistently** (`export_job.py:37`). `amount_cents / 100` is a float, so 1000 cents is written as `10.0` and 1010 as `10.1`, where finance likely expects `10.00` and `10.10`. Use `f"{amount_cents / 100:.2f}"` or `Decimal`.
- **"Yesterday" depends on the server's time zone** (`export_job.py:47`). `date.today()` is server-local, and the query compares it against `paid_at`. If `paid_at` is stored in UTC and the server or finance works in another zone, invoices near midnight land in the wrong day's file. I can't tell from this file which applies, so confirm the column type and the server zone.
- **Info logs probably go nowhere.** The script never configures logging, so the "exporting" and "export finished" lines are dropped and only errors reach stderr. Add `logging.basicConfig(level=logging.INFO)` under `__main__`.
- **Importing the module requires `FINANCE_UPLOAD_URL`** (`export_job.py:16`). Any test that imports it fails with `KeyError` unless the variable is set. Read it inside `upload()` or pass it in.

## Tests

By your own standard this is thin: the docstring says the tests cover only the CSV header and one row. Missing tests:
- the date bounds passed to the query
- an upload failure causing `run()` to fail loudly (this would pin fix 1)
- amount formatting
- an empty day

I'd add at least the failure-path test in this PR, since that is the behaviour most likely to cause trouble in production.

VERDICT: READY WITH CHANGES
