This project contains automated tests for APIs using pytest
and playwright
.
- Python 3.12
- Docker
-
Clone the repository:
git clone https://github.com/JacksonMar/API_tests.git cd API_tests
-
Create venv
python3 -m venv .venv
source .venv/bin/activate
-
Install the dependencies:
pip install -r requirements.txt
To run the tests locally, execute the following command:
pytest . -s -v --html=report.html
docker build -t my-test-image .
docker run -v $(pwd):/API_tests my-test-image