Automate a test that is expected to fail using @pytest.mark.xfail
Preconditions (2)
Step 1: Create a test function that asserts 1 + 1 equals 3
Step 2: Mark the test function with @pytest.mark.xfail to indicate it is expected to fail
Step 3: Run the test suite using pytest
Step 4: Observe that the test is reported as an expected failure, not a failure
✅ Expected Result: The test is reported as xfailed (expected failure) by pytest, not as a failure or error