Skip to main content
grasp.study
About
Explore
Pricing
Log in
Try it for free
Back to course
👋
Welcome to a Grasp lesson
Create a free account
to keep studying and create your own study path.
Python Basics
·
Module 1
Professional Python Testing with pytest
1
Testing with Pytest: Advanced Assertions
Write and run test functions using pytest conventions and advanced assertions.
2
Mastering pytest Fixtures for Test Dependencies
Use pytest fixtures to manage test dependencies and state, from setup to teardown.
3
Efficient Test Parameterization with `@pytest.mark.parametrize`
Parameterize tests using `@pytest.mark.parametrize` to cover multiple scenarios efficiently.
4
Testing Expected Exceptions with `pytest.raises`
Test for expected exceptions and specific error messages using `pytest.raises`.
Mocking External Services with `pytest-mock`
Mock external services and dependencies using the `pytest-mock` plugin's `mocker` fixture.
6
Sharing Fixtures with `conftest.py`
Structure and share fixtures across test modules using `conftest.py`.
7
Mastering Test Organization with Pytest Markers
Organize a test suite with unit and integration tests, using markers to categorize and filter test runs.
8
Mastering Test Coverage with Pytest-Cov
Generate and interpret test coverage reports using `pytest-cov` to identify untested code paths.
Next module isn't ready yet,
Back to course
Previous module
Next module