Restful booker is a public api.
I am learning pytest and how automate api. These tests are just my practice.
pip install -r requirements.txt
If you use allure:
pytest -v --alluredir=allure_reports
allure serve .\allure_reports
If you use only pytest:
pytest -v
docker build -t restful-booker .
If you use allure:
Commands for linux:
mkdir allure_results
docker run -v "$(pwd)"/allure_results:/usr/src/restful-booker/allure_results -t restful-booker pytest -v --alluredir=allure_results
allure serve .\allure_reports
If you use only pytest:
docker run -t restful-booker pytest -v