Skip to content

77ripdrive/Python_sandbox.github.io

Repository files navigation

.github/workflows/poetry.yml PYTEST

The test report can be found here Allure report

An example of initializing a Python project from scratch

Dependency management with Poetry-Python

pip3 install --user poetry

for Windows with Powershell

(Invoke-WebRequest -Uri https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py -UseBasicParsing).Content | python -

Poetry init

poetry init
poetry add pre-commit black

на вопросы Would you like to define ... ответить no

Pre-commit

for Windows

poetry pre-commit sample-config > .pre-commit-config.yaml
poetry pre-commit install

or

pre-commit sample-config > .pre-commit-config.yaml
pre-commit run -a

To run tests, clone the project and run

poetry install
poetry run pytest

To run marked tests with tag @api_service

poetry run python -m pytest -k "api_service"