filmov
tv
Getting started with Python Unit Tests and TDD to structure your code better

Показать описание
You understand that unit tests allow you to test the correctness of code and make sure everything keeps working after making changes but many code is hard to test because often, code and tests are written in the wrong order. This causes some code not to be tested at all! In this video I will show you a simple trick that makes writing unit tests much more enjoyable and as a bonus will let you write better code.
C H A P T E R S
0:47 Spot first error by executing code
1:20 The problem with testing coupled code
2:30 Unit test for empty Settings class
3:00 Test failed due to an AttributeError
3:45 Reverse the order of writing code and writing tests
4:00 Write the test first!
4:40 Do not use text files, database or network data in Unit Tests
5:30 You hate tests because your system is coupled
5:50 Useless tests because the business requires test coverage
6:30 Use dependency injection to decouple the code
6:50 SettingStorage objects are now pluggable
M Y O N L I N E T R A I N I N G
#pythonforeveryone #programming #python
C H A P T E R S
0:47 Spot first error by executing code
1:20 The problem with testing coupled code
2:30 Unit test for empty Settings class
3:00 Test failed due to an AttributeError
3:45 Reverse the order of writing code and writing tests
4:00 Write the test first!
4:40 Do not use text files, database or network data in Unit Tests
5:30 You hate tests because your system is coupled
5:50 Useless tests because the business requires test coverage
6:30 Use dependency injection to decouple the code
6:50 SettingStorage objects are now pluggable
M Y O N L I N E T R A I N I N G
#pythonforeveryone #programming #python
Python for Beginners - Learn Coding with Python in 1 Hour
getting started with pytest (beginner - intermediate) anthony explains #518
Python Tutorial: Unit Testing Your Code with the unittest Module
Getting Started with Python - ONE SHOT | CBSE Class 11 Computer Science | ENGLISH🎯
Python 101: Learn the 5 Must-Know Concepts
Google Colab Tutorial for Beginners | Get Started with Google Colab
Pytest Tutorial – How to Test Python Code
PyTest Tutorial | Unit Testing Framework In Python | How to use PyTest | Python Training | Edureka
Getting Started with Python | Python Tutorial for Beginners in Sinhala
Introduction to Python Programming | Python for Beginners #lec1
Fastest way to learn Python #coding #python #programming
Python in 1 Minute
Unit Testing in Python with pytest | Getting Started (Part-1)
Class 11: Basics of Python with Practice questions | 2023 | Informatics Practices IP 065 | Aakash
Easiest way to do unit testing in python
Python Unit Testing With PyTest 1 - Getting started with pytest
Python full course in telugu in 1 hour | Complete python course | Vamsi Bhavani
Getting Started With Python | Class 11 CBSE Computer Science
Full Chapter- Getting Started With Python | ONE SHOT VIDEO with PROGRAMS | Class 11 Computer Science
How To Write Unit Tests in Python • Pytest Tutorial
How Much A Python Developer Earn ? | Python Developer Salary In India #Shorts #simplilearn
Normal People VS Programmers #coding #python #programming #easy #funny #short
Amazing Rotating Python Graphics Design using Turtle 🐢 #python #pythonshorts #coding #viral #design...
How to create graphics using Python turtle 🐍🐢 #coding
Комментарии