/pytest

Repositório de estudos do framework PyTest.

Primary LanguagePythonMIT LicenseMIT

Pytest 🧪

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

Instructions for running the project

  1. Python and pip installed on the machine
  2. Locally cloned pytest project
  3. Access the project folder with the command cd pytest
  4. It is recommended to create a virtual environment, for that run the command python -m venv . and .\Scripts\activate to activate it
  5. Install the dependencies with the command pip install requirements.txt
  6. 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

Instruções para a execução do projeto

  1. Python e pip instalados na máquina
  2. Projeto pytest clonado localmente
  3. Acesse a pasta do projeto com o comando cd pytest
  4. Recomenda-se a criação de um ambiente virtual, para tanto execute o comando python -m venv . e .\Scripts\activate para ativá-lo
  5. Instale as dependências com o comando pip install requirements.txt
  6. Execute o script de testes com o comando pytest .\tests\test_circle.py