Pytest Tutorial – How to Test Python Code

Published: 23 October 2023
on channel: freeCodeCamp.org
333,787
6k

Learn how to use pytest, the powerful testing framework for Python. Throughout this course you'll gain a deep understanding of pytest's features, best practices, and the nuances of writing effective tests. And at the end, you'll learn how you can use ChatGPT to help you write tests quicker.

✏️ Course developed by ‪@iamrithmic‬
𝑿   / rithmio  

❤️ Try interactive Python courses we love, right in your browser: https://scrimba.com/freeCodeCamp-Python (Made possible by a grant from our friends at Scrimba)

⭐️ Contents ⭐️
(0:00:00) Introduction
(0:06:06) Our First Tests
(0:19:28) Class-based Tests
(0:29:49) Fixtures
(0:41:10) Mark & Parametrize
(0:55:24) Mocking
(1:13:16) Testing with ChatGPT

🎉 Thanks to our Champion and Sponsor supporters:
👾 davthecoder
👾 jedi-or-sith
👾 南宮千影
👾 Agustín Kussrow
👾 Nattira Maneerat
👾 Heather Wcislo
👾 Serhiy Kalinets
👾 Justin Hual
👾 Otis Morgan
👾 Oscar Rahnama

--

Learn to code for free and get a developer job: https://www.freecodecamp.org

Read hundreds of articles on programming: https://freecodecamp.org/news


On this page of the site you can watch the video online Pytest Tutorial – How to Test Python Code with a duration of hours minute second in good quality, which was uploaded by the user freeCodeCamp.org 23 October 2023, share the link with friends and acquaintances, this video has already been watched 333,787 times on youtube and it was liked by 6 thousand viewers. Enjoy your viewing!