Test Overview
This test checks that a pytest marker named slow is properly registered and can be used to mark a test. It verifies that the marker is recognized and the test runs successfully.
This test checks that a pytest marker named slow is properly registered and can be used to mark a test. It verifies that the marker is recognized and the test runs successfully.
import pytest @pytest.mark.slow def test_example(): assert 1 + 1 == 2
| Step | Action | System State | Assertion | Result |
|---|---|---|---|---|
| 1 | Pytest starts and loads test modules | Pytest environment initialized with registered markers | - | PASS |
| 2 | Pytest discovers test_example marked with @pytest.mark.slow | Test function test_example is found with marker 'slow' | Check marker 'slow' is registered and recognized | PASS |
| 3 | Pytest runs test_example | Test executes the assertion 1 + 1 == 2 | Assert that 1 + 1 equals 2 | PASS |
| 4 | Pytest reports test_example as passed | Test suite shows test_example passed with marker 'slow' | - | PASS |