Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Pytest Master Class

Pragmatic AI Labs via YouTube

Overview

Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This course teaches Python testing with pytest, covering local test environments, fixtures, debugging, coverage, notebook testing, and testing Flask applications and Click command-line tools. It also demonstrates CI/CD automation with GitHub Actions and AWS CodeBuild, including matrix testing across Python versions.

Syllabus

* Introduction
* What is DevOps?
* Github CodeSpaces
* Create Python Project Structure: Makefile, requirements.txt, test file and virtualenv
* Importing code with IPython
* Writing tests with Pytest
* Using Pylint
* Verifying Pylint bad syntax catch
* Formatting code with Black
* Pinning requirements to a specific version
* Setup Github Actions
* Matrix Testing multiple versions of a Python 3.6, 3.7, 3.8, 3.9 with Github Actions
* Using AWS CloudShell
* Using AWS Cloud9
* Adding virtualenv to ~/.bashrc
* Using AWS CodeBuild
* Testing Google Colab Notebooks and Jupyter Notebooks with nbval and Pytest
* Using pdb;pdb.set_trace and ipdb;ipdb.set_trace
* Using pytest-cov
* Using pytest with --pdb pdb debbuging during tests
* Using pytest with --pdb --maxfailures 1 to stop after first failure
* Using pytest to test a single test
* Using Pytest with fixtures
* Using Pytest setup_function and teardown_function to setup and teardown of tests
* Using flask web framework
* Testing flask web framework with pytest
* Extending flask with a greedy coin change machine
* Using click to create a command line interface
* Using Pytest to test click command line interfaces
* Matrix testing entire project with click, pytest, and nbval using Github Actions and multiple versions of Python 3.6, 3.7, 3.8, 3.9

Taught by

Pragmatic AI Labs

Reviews

Start your review of Pytest Master Class

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.