YoVDO

Pytest Master Class

Offered By: Pragmatic AI Labs via YouTube

Tags

pytest Courses DevOps Courses Software Testing Courses GitHub Actions Courses CI/CD Pipelines Courses Web Frameworks Courses

Course Description

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

Related Courses

Startup Engineering
Stanford University via Coursera
Developing Scalable Apps in Java
Google via Udacity
Cloud Computing Concepts, Part 1
University of Illinois at Urbana-Champaign via Coursera
Cloud Networking
University of Illinois at Urbana-Champaign via Coursera
Cloud Computing Concepts: Part 2
University of Illinois at Urbana-Champaign via Coursera