thinQmaster Virtual testing partner Adaptive practice exams that find your weak spots and drill them. Every answer explained. From $69
Enroll

thinQmaster

Find your exam

Five questions free, before you decide.

Step 1 · choose a vendor

In one of our camps? Your practice exams come with the tuition — they are on your study page already.

DevOps & Automation · Intermediate

pytest

A popular Python testing framework that discovers test_*.py files and uses plain assert statements with rich failure reporting.

Definition

pytest features include fixtures for setup and teardown, parametrization, markers, and plugins such as pytest-cov. It integrates easily into CI pipelines.

Example

@pytest.mark.parametrize('vlan', [1, 4094]) def test_valid(vlan): assert is_valid(vlan)

Exam tip

pytest discovers files and functions prefixed with test_; fixtures provide reusable setup.

Related terms