Course overview
This course helps beginner backend developers master practical testing with PyTest. You will learn to write checks for functions and exceptions, use fixtures, parametrization, and mocks, and test HTTP clients, files, and database interactions. Every topic is reinforced with hands-on tasks in UPSHELL with auto-checking, SSH access, and an AI mentor.
You will learn
Write automated tests with PyTest for backend code
Check exceptions and parametrize tests
Use fixtures to prepare test data
Test HTTP clients, files, and database interactions
Table of contents
PyTest Basics and Running Tests
Practice
15 min.
Simple Assert Checks
Practice
16 min.
Organizing Test Files
Practice
15 min.
Testing Exceptions
Practice
17 min.
Test Parametrization
Practice
16 min.
Markers and Test Selection
Practice
14 min.
Debugging Failing Tests
Practice
15 min.
Introduction to Fixtures
Practice
18 min.
Fixture Scopes
Practice
16 min.
Fixtures with Teardown
Practice
14 min.
Fixtures in conftest.py
Practice
18 min.
Fixture Parametrization
Practice
16 min.
Test Object Factories
Practice
18 min.
Temp Files and Directories
Practice
16 min.
Mock Basics in Tests
Practice
16 min.
Monkeypatch in PyTest
Practice
16 min.
Checking Calls and Arguments
Practice
16 min.
Testing HTTP Clients
Practice
20 min.
Testing Database Code
Practice
18 min.
Coverage and Test Quality
Practice
17 min.
Final Mini Project
Practice
36 min.
Frequently Asked Questions
A subscription to the platform gives you unlimited access to all courses, as well as access to an online trainer with practical exercises.
Additionally, with a Premium subscription or higher, you also get access to all pet projects and the opportunity to take technical interviews with an AI mentor.
You can cancel your subscription at any time, and you will still have access to the platform for the paid period. You can do this through your personal account in the 'Subscription Management' section.
Yes, you can upgrade to a new plan at any time. We will provide a discount based on the unused time of your current plan. You can change your plan in your personal account.
To request a refund for a paid plan, please contact us at support@upshell.io. We will process your refund for the unused portion of your subscription within 5 business days.