Skip to main content
PacketMentor logo
← All automation labs
App Deployment Lab · Foundational ~4 min · 5 objectives · CCNA Automation 4.5

pytest basics: 4 pass, 1 fail

Pre-seeded tests/test_vlans.py with 5 tests and vlans.py with the function under test. Run pytest in default (dots) mode and -v (one-line-per-test) mode. The intentionally broken test demonstrates how pytest reports FAILED.

Hands-on lab · real engine

cat → pytest → pytest -v

0 / 5

Pre-seeded tests/test_vlans.py and vlans.py. One test has 'broken' in the name so it is reported as FAILED to show both outcomes.

you@laptop:~$

Stuck on a lab, or not sure what to practice next?

Talk it through with a mentor on a free 20-minute call. We look at your lab, your exam date and your weak spots, and you leave with a plan.

Book free session