Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

freeCodeCamp

Pytest Tutorial – How to Test Python Code

via freeCodeCamp

Overview

Learn how to effectively test Python code using the pytest framework. This course covers pytest's features, best practices, and writing efficient tests. You will also discover how to leverage ChatGPT for quicker test writing. The course includes topics such as writing initial tests, class-based tests, fixtures, marking, parametrizing, and mocking. The intended audience for this course is Python developers looking to enhance their testing skills.

Syllabus

Introduction
Our First Tests
Class-based Tests
Fixtures
Mark & Parametrize
Mocking
Testing with ChatGPT

Taught by

freeCodeCamp.org

Reviews

Start your review of Pytest Tutorial – How to Test Python Code

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.