Configure CI for Python app in Azure Devops (Pytest, Nexus IQ, SonarQube)
Example of Azure Pipeline yaml file to configure pytest with code coverage and Nexus IQ / SonarQube scanners for Python application.
Example of Azure Pipeline yaml file to configure pytest with code coverage and Nexus IQ / SonarQube scanners for Python application.
When we have time-expensive functionality in our fixtures, it is good to know when they are invoked and run. Although this should be intuitive, let’s test on a simple example.
In pytest we can parametrize in three different ways:
This article presents a few examples of how to use parametrization in pytest using @pytest.mark.parametrize. The article starts from the basic tests, and end with the usage of ids and indirect.