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

Master Python testing with this comprehensive course on Pytest. Dive deep into DevOps practices, learn to set up efficient CI/CD pipelines, and explore cloud-based development environments. Gain hands-on experience with virtual environments, advanced Pytest functions, and realistic problem-solving using libraries, command-line tools, and web frameworks. Cover essential topics including Github CodeSpaces, AWS services, debugging techniques, code coverage, fixtures, and matrix testing. Enhance your skills in writing readable, concise tests and implementing robust testing strategies across multiple Python versions. By the end of this nearly three-hour masterclass, led by five-time O'Reilly author and AWS ML Hero Noah Gift, you'll be equipped to take your testing and DevOps skills to the next level.

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.