Warning
The implementation and tests in this repository are prepared for a training session, in which the crowd tries to improve both. This raw variant contains many deliberate drawbacks and mis-implementations.
This project fetches a list of electric vehicles from an online source and provides functionality to query and filter them.
- Retrieve the latest electric vehicle data once per day (no live updates).
- Store data in a database to ensure fast access.
- Allow users to:
- List all available brands.
- Filter vehicles by brand.
- Fully test the application, including unit tests and integration tests.
- Daily freshness: The system always serves the most recent data from the current day.
- Database usage: Data is stored locally in a database to improve query speed.
- Filtering: The API allows filtering vehicles by their brand.
- docker
- vscode / pycharm (for
devcontainers) - python + uv
uv run pytest -m "not e2e"
uv run pytest -m e2e
uv run pytest --cov-report term-missing --cov=app
uv run pytest --cov-report html --cov=app
- Python Cheatsheet: https://cheatsheets.zip/python