filmov
tv
A Practical and Short Intro to TDD (Test Driven Development) Using Python
![preview_player](https://i.ytimg.com/vi/2jhFkFFwz-g/maxresdefault.jpg)
Показать описание
Step into Test Driven Development with Python in this concise introduction 💡
We'll walk you through the benefits of TDD, set up a simple example, and demonstrate how to iteratively build and refine a Car class with a property.
Whether you're new to TDD or just want a quick refresher, this video has you covered 😎 💪
Chapters:
00:00 Introduction to TDD (Test Driven Development)
00:09 Explanation of TDD
00:23 Advantages and main takeaways
01:01 Setting Up an example
01:33 Writing a first test function to construct a car instance
02:48 Building the Car class (passing the test)
03:46 Refactoring the Car constructor to take no argument
04:40 Refactor to use a property (read-only attribute)
05:10 Writing a second test function to set the car's speed
05:38 Implementing the property setter for this
06:25 Writing a third test to disallow negative speeds
07:12 Implementing the validation code for this
08:32 Refactor duplicated car instance creation into a pytest fixture
09:32 Wrap up / summary of what we've done and learned
10:15 Do you want a more advanced example?
---
And last but not least, we appreciate any feedback to make our YouTube content better 💡
We'll walk you through the benefits of TDD, set up a simple example, and demonstrate how to iteratively build and refine a Car class with a property.
Whether you're new to TDD or just want a quick refresher, this video has you covered 😎 💪
Chapters:
00:00 Introduction to TDD (Test Driven Development)
00:09 Explanation of TDD
00:23 Advantages and main takeaways
01:01 Setting Up an example
01:33 Writing a first test function to construct a car instance
02:48 Building the Car class (passing the test)
03:46 Refactoring the Car constructor to take no argument
04:40 Refactor to use a property (read-only attribute)
05:10 Writing a second test function to set the car's speed
05:38 Implementing the property setter for this
06:25 Writing a third test to disallow negative speeds
07:12 Implementing the validation code for this
08:32 Refactor duplicated car instance creation into a pytest fixture
09:32 Wrap up / summary of what we've done and learned
10:15 Do you want a more advanced example?
---
And last but not least, we appreciate any feedback to make our YouTube content better 💡
'A Practical Introduction to Docs-As-Code' - Alec Clews (LCA 2020)
A brief practical intro to Convex Hulls and Material Stability
Tell Me About Yourself - Practice English Speaking Conversation | SELF-INTRODUCTION IN ENGLISH
My Practice – 'A Brief Introduction'
Introduction to 2023 Small Practice Action Planning Tool Video
The PH Intro On Drums - A Practical Application #shorts
Kolmogorov Complexity | A Practical Introduction with Examples
Korean Speaking Practice 👄 Day 1: Self-Introduction & Role Play
PTE PRACTICE |APEUNI|LANGUAGE ACADEMYEXAM PRACTICE|ACADEMIC 2024|READ ALOUD|INTRO|BEGINNER|SUBSCRIBE
2024 High Performance Computing Practical Lecture 0.1 Short Introduction to UNIX & SSH Part1 👨💻...
Practical AI Class Short Introduction. #aiclass #chatgpt #claudeai #copilot #gen3 #perplexityai
Simple English Conversation for Beginners: Introductions and Greetings #shorts #learnenglish
A Brief Introduction Of My Book: A Practical Handbook of Supply Chain Management
2021 High Performance Computing Practical Lecture 0.1 Short Introduction to UNIX and SSH Part1 👨💻...
Practical Science Introduction
Animation intro #practice #shorts
How to Introduce Yourself in English: Self-Introduction for Interview | Speaking Practice
English Speaking Practice: Self Introduction #Shorts
2020 Cloud Computing and Big Data Practical Lecture 0.1 Short Intro Python and Jupyter Part1 👨💻...
Introduction to the Somatic Therapy Full Practice
EXCEL AT Software Product Introductions: Practical Examples #shorts #learnenglish #englishfordevs
Short Intro of Practical philosopher / Premjeet Sirohi / ULM Vision
introduction practice for speaking English practice #viral #shorts
#jamming with @acxx #vlogger @walkingtallbaguiojustwalk #baguiocity #shorts intro practice
Комментарии