Tags
Language
Tags
March 2025
Su Mo Tu We Th Fr Sa
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
Attention❗ To save your time, in order to download anything on this site, you must be registered 👉 HERE. If you do not have a registration yet, it is better to do it right away. ✌

( • )( • ) ( ͡⚆ ͜ʖ ͡⚆ ) (‿ˠ‿)
SpicyMags.xyz

The Speedrun Python Unit Testing Course (Unittest, Mock)

Posted By: ELK1nG
The Speedrun Python Unit Testing Course (Unittest, Mock)

The Speedrun Python Unit Testing Course (Unittest, Mock)
Published 10/2024
MP4 | Video: h264, 1920x1080 | Audio: AAC, 44.1 KHz
Language: English | Size: 329.23 MB | Duration: 1h 12m

Let's make bug-free applications using tests!

What you'll learn

Write Unit Test Cases

Run Test Cases

Execution of test collections

Develop Test Suites

Use Unit Test Fixtures

Mocking of functions and objects

Organize test code

Requirements

Python Programming Fundamentals

IDE Environment - Basic Familiarity

Description

In this course is that we're gonna learn how to test applications with python unittest framework.Unit Testing is the first level of software testing where the smallest testable parts of softwareare tested. This is used to validate that each software unit performs as designed.The unittest test framework is Python xUnit style framework. In this article, we will learn about unittest framework with the help of examples.You're gonna learn the basics concepts of applications testing such as:Individual unit of testingMake preparations and sharing test data by using test fixturesTest code organizationTest grouping using TestSuiteTest skippingExecution of test collectionsMocking of objects and functionsUsing mock decorators for objects patchingYou'll also learn how to use mock objects. Mocking Test is a technique or methodused in testing within the scope of software testing by replacing theoriginal object (dependent object) with a mock object. The mock object created can simulate the behavior of the dependent object thatis temporarily replaced. Testing in mock testing focuses on the unit being testedwithout involving or depending on other units by isolating the object to be tested.All source code for each video is available for download.

Overview

Section 1: Unit Testing in Python

Lecture 1 Introduction

Lecture 2 Writing Basic Tests with TestCase Class

Lecture 3 Test preparations with Fixtures

Lecture 4 Grouping tests by using subTest() method

Lecture 5 Skipping tests

Lecture 6 Test loading: loadTestsFromTestCase()

Lecture 7 Test loading: loadTestsFromTestModule()

Lecture 8 Test loading: loadTestsFromNames()

Lecture 9 Test loading: discover(), run tests from code and from command line

Section 2: Mocking in Unit Tests (unittest.mock)

Lecture 10 Mock object

Lecture 11 Using side effects in Mock objects

Lecture 12 The patchers: patch() method

Lecture 13 The patchers: Decorators

Lecture 14 The patchers: patch.object() method

Lecture 15 Helpers: create_autospec

Lecture 16 Helpers: mock_open

Lecture 17 Mocking of Web Requests (with web application example)

Python Programmers,Python Automation Engineers