English summary
This repository aims to study and practice the framework PyTest.
For this purpose, the project has the Circle class, which has a radius attribute and two methods, get_area and get_circumference.
These are the methods being tested in the test_circle.py script
- Python and pip installed on the machine
- Locally cloned pytest project
- Access the project folder with the command
cd pytest
- It is recommended to create a virtual environment, for that run the command
python -m venv .
and.\Scripts\activate
to activate it - Install the dependencies with the command
pip install requirements.txt
- Run the test script with the command
pytest .\tests\test_circle.py
Sumário em português
Este repositório tem como objetivo o estudo e prática do framework PyTest.
Para tanto, o projeto conta com a classe Circle, que possui um atributo radius e dois métodos, o get_area e get_circumference.
São estes os métodos que estão sendo testados no script test_circle.py
- Python e pip instalados na máquina
- Projeto pytest clonado localmente
- Acesse a pasta do projeto com o comando
cd pytest
- Recomenda-se a criação de um ambiente virtual, para tanto execute o comando
python -m venv .
e.\Scripts\activate
para ativá-lo - Instale as dependências com o comando
pip install requirements.txt
- Execute o script de testes com o comando
pytest .\tests\test_circle.py