Description
This task would look into and implement a testing framework like pytest for wmfdata-python. Beyond pytest, we could also consider adding a test coverage check like pytest-cov. The documentation should also be updated to let contributors know what is expected of them as far as running the testing suite prior to a pull/merge request. Eventually running the test suite on opened/updated PRs should be considered, but this is blocked by a potential migration from GitHub to GitLab.
Note: this task came from a discussion in T348999: Add linter and formatter to wmfdata-python (and link check).
Contribution
Happy to work on this myself after a discussion the changes that need to be made :)