Example of simple API tests for yandex disk (swagger)
Used packages: Requests + Pytest + Allure2
- Python 3.7.3
- Allure2 report generator (add allure to PATH variables)
(Terminal from root project folder)
- Install Python dependencies:
. ./scripts/install_deps.sh
- Get token for yandex disk here
- Set it in environment variable:
export TOKEN='your_token'
- Run tests and get report:
. ./scripts/run_tests_and_make_report.sh
- One folder will be created in your disk
- All test data will be created inside it
- After test run folder with all test data will be deleted to trash folder