Skip to Content
Advanced Testing with Pytest Video Course
on-demand course

Advanced Testing with Pytest Video Course

with Alfredo Deza, Noah Gift
February 2021
Intermediate
4h 51m
English
Pragmatic AI Labs

Overview

There are already suitable introductory lessons for testing Python with Pytest. But there are essential concepts for functional and integration testing that require detailed explanations. In this course, you'll have a better grasp on solving a complex test matrix with ease, including highly functional tests with databases, web services, and containers. We will go from basic test runs that, although sufficient, isn't helping us in the case of failure, all the way to adding advanced techniques expanding on the framework. All of these changes live, debugging as we make progress.
Learn everything you need to know to be proficient with advanced testing in Python techniques, from unit tests to integration testing and functional testing with complex test matrixes.
Topics include:
* Introduction to Pytest fixtures.
* Create powerful plugins with conftest.py
* Monkeypatching, patching, and mocking with Pytest
* Apply patches and mocks globally, automatically, or on-demand per test
* Complex functional testing with remote Docker containers
* Integrate Pytest with Docker containers, assert and run assertions remotely
* Build Command-line tools with Click, run tests agains them
* Create docker command-line tools and easily test them
* Use Github Codespaces to develop continuous integration (CI/CD)
* Github Actions to test multiple Python versions and cloud environments, including Amazon Web Services (AWS) and Google's Cloud Platform (GCP), and Microsoft Azure
(Simplified) Chinese Translation: 已经有适合使用Pytest测试Python的入门课程。但是对于功能和集成测试,有一些基本概念需要详细说明。在本课程中,您将更轻松地解决复杂的测试矩阵,包括使用数据库,Web服务和容器进行的功能强大的测试。我们将从基本的测试运行开始,尽管这些运行足够,但是在失败的情况下并不能帮助我们,一直到添加在框架上扩展的高级技术。所有这些更改都是实时的,并且随着我们的进步而不断调试。
学习精通Python技术的高级测试所需的一切,从单元测试到集成测试和具有复杂测试矩阵的功能测试。
主题包括:
* Pytest固定装置简介。
*使用conftest.py创建功能强大的插件
*使用Pytest进行Monkeypatching,修补和模拟
*全局,自动或按需按需应用补丁和模拟
*使用远程Docker容器进行复杂的功能测试
*将Pytest与Docker容器集成在一起,远程声明和运行声明
*使用Click构建命令行工具,再次运行测试
*创建docker命令行工具并轻松对其进行测试
*使用Github Codespaces开发持续集成(CI / CD)
* Github Actions可测试多个Python版本和云环境,包括Amazon Web Services(AWS)和Google的Cloud Platform(GCP)以及Microsoft Azure

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Watch now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Testing In Python video course

Testing In Python video course

Alfredo Deza, Noah Gift
Python Command Line Tools Course

Python Command Line Tools Course

Alfredo Deza, Noah Gift
Python Command Line Tools

Python Command Line Tools

Alfredo Deza, Noah Gift
Functional Test Matrix with Tox

Functional Test Matrix with Tox

Alfredo Deza, Noah Gift

Publisher Resources

ISBN: 60643VIDEOPAIMLOtherOtherOther