Goal/Background
We should improve testing for mediawiki-event-enrichment. A good baseline for comparison is the Scala version of this application, that has a more comprehensive unit and integration test suite.
Key Tasks/Dependencies
- Scala test suite https://gitlab.wikimedia.org/repos/data-engineering/mediawiki-stream-enrichment/-/tree/main/enrichment/src/test/scala
- Related (but not required) https://phabricator.wikimedia.org/T326565
Acceptance Criteria
- Unit tests for the enrichment function logic are provided
- Integration tests (e2e) for the streaming enrichment application are provided. Tests do not depend on remote hosts. HTTPs responses should be mocked.
- The repo is restructured with a more pythonic layout