task.py
: This file contains all the task-related code.test.py
: This file contains all the test cases.orders.csv
: This file contains the dataset. | Google Sheets
git clone https://github.com/hxyro/tanx-assessment.git
cd tanx-assessment
Make sure you have the correct Python version installed:
python --version
Create a Python virtual environment and install all required packages
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
Run the tests
python -m unittest test
Run the main task
python task.py
Make sure you have Docker and Docker Compose installed
docker --version
docker-compose --version
Run the tests
docker-compose up test
Run the task
docker-compose up task
NOTE
: Due to the large number of data entries in orders.csv, the output is limited to 50 lines.