Py
Py
Run
What do you want to learn?
Lessons
⌄
Browse the curriculum
Find your level
Practice problems
Interview prep
Cheat sheets
Career paths
Explore by role
All lessons
Fundamentals
Web development
Data
Engineering
Data science
Machine learning
GenAI & RAG
Automation
DSA / interview
Tools
new
⌄
Online compiler
Playground
Revise
Terminal
SQL playground
Notebook
Build
⌄
Workspaces
Guided projects
My published sites
Blog
Pricing
AI
en
Sign in
Start free
→
Start free
→
loading…
Feedback
💬
Ask PyRun
Home
›
All lessons
›
Engineering
›
Testing with pytest
Testing with pytest
Advanced
12 min
Engineering
engineering · testing · pytest
Try it
↓
Lesson
1
of
5
In this track
▾
1
Testing with pytest
12 min
2
pytest fixtures + mocking
15 min
3
Debugging Python like a pro
12 min
4
Git for Python devs
12 min
5
Building CLI tools with argparse
12 min
←
→
Loading lesson…
←
Previous lesson
Database migrations with Alembic
Advanced · 15 min
Next lesson
→
pytest fixtures + mocking
Advanced · 15 min
Related lessons
Advanced · 15 min
pytest fixtures + mocking
Shared setup, dependency injection, monkeypatch — how real test suites stay fast.
Advanced · 12 min
Debugging Python like a pro
pdb, breakpoint(), tracebacks — beyond print-statement debugging.
Advanced · 12 min
Git for Python devs
The 15 git commands you actually use. Branching, merging, rescuing yourself.