To run:
git clone git@github.com:DziumovS/lh_test_task.gitcd lh_test_taskdocker compose up -dpython sending_test_requests.pyThe tests are located in test_app.py.
If all tests pass successfully, the application container is deployed in the background on port 5000.
You can send test requests, for example, via Postman with content-type: x-www-form-urlencoded. Or use sending_test_requests.py.
Oldschool
if you're an oldfag you also can use this:
git clone git@github.com:DziumovS/lh_test_task.gitcd lh_test_taskpython -m venv venvsource venv/bin/activatepip install -r requirements.txtpython test_app.pypython main.pypython sending_test_requests.py