Commit Graph

11 Commits

Author SHA1 Message Date
Peter
7644d47bc8 test: add pytest infrastructure and poll() tests
- Add pytest and pytest-asyncio as optional dev dependencies
- Configure asyncio_mode=auto and pythonpath=[src] in pyproject.toml
- Write three tests at the poll() seam:
  * single-page response publishes all Flights and returns the count
  * paginated response follows link:rel=next and publishes all pages
  * HTTP error from raise_for_status() propagates out of poll()

Tests use injected stub HTTP session and mock Kafka engine;
no real network or broker required.

Closes #4

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-07-19 09:07:27 +02:00
Peter
78c69e2cc7 prefactor: extract poll() function from start()
The inner fetch-and-publish sweep is moved into a standalone
async poll(session, stream_engine, api_settings, kafka_settings, tracer) -> int
function. start() calls it exactly once — observable behaviour is unchanged.
This creates the test seam that tickets #4 and #5 depend on.

Closes #3

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-07-19 09:03:12 +02:00
Peter
27e7ed4379 OPT add linting workflow 2025-12-29 17:15:35 +01:00
Peter
2a67276375 OPT add linting workflow 2025-12-29 17:15:35 +01:00
Peter
f0ce386a78 OPT project structure 2025-12-29 17:15:29 +01:00
Peter
f5d32cfd71 OPT add linting workflow 2025-12-29 17:09:46 +01:00
Peter
da7b4e07bb OPT add linting workflow 2025-12-29 17:00:39 +01:00
f5ccbde002 Merge pull request 'new/initial_commit' (#1) from new/initial_commit into main
Reviewed-on: #1
2025-12-28 18:55:28 +01:00
Peter Wieringa
ee58f14020 Merge remote-tracking branch 'origin/main' into new/initial_commit 2025-12-28 18:36:07 +01:00
Peter Wieringa
63610df57e NEW: initial commit 2025-12-28 16:09:27 +01:00
4b7bac51b9 Initial commit 2025-12-28 15:34:52 +01:00