TDD in Python with pytest - Part 3

Опубликовано: 07 Август 2026
на канале: The Digital Cat
784
15

In this Python workshop I will show you how Test-Driven Development (TDD) works, through the creation of a very simple Python class.
TDD is a very powerful technique that can boost your productivity and save an incredible amount of debug time, if used correctly. A good test suite will immediately spot if changes to your code broke the intended behaviour, and thus allow you to perform safe refactoring. TDD is one of the pillars of modern development, and cannot be overlooked.

#Python #TDD #pytest

The code from this video can be found at:
https://github.com/lgiordani/pytest_w...

The workshop has been published in my book about the clean architecture, available for free on Leanpub https://leanpub.com/clean-architectur...

The amazing pytest testing framework https://docs.pytest.org/en/latest/

The videos, music and fonts I used in this video are
Cat Feline Pet by Gustavo_Belemmi (https://pixabay.com/videos/cat-feline...)
Mountains Beautiful Landscape by invisiblepower (https://pixabay.com/videos/mountains-...)
Asimov Font by KineticPlasma Fonts (https://www.fontspace.com/kineticplas...)
Spring evening village by inchadney (https://freesound.org/people/inchadne...) [CC BY-NC 3.0]
Staying Positive by spinningmerkaba (http://dig.ccmixter.org/files/jlbrock...) [CC BY-NC 3.0]

The [CC BY-NC 3.0] license can be found at https://creativecommons.org/licenses/...
The Pixabay license can be found at https://pixabay.com/service/license/
Thanks to these artists who provided such useful assets for free.

You Can Find Me On:
My Website - https://www.thedigitalcatonline.com
Twitter -   / thedigicat  

This video is released under Creative Commons Attribution-ShareAlike 4.0 International [CC BY-SA 4.0] https://creativecommons.org/licenses/...