[TalkPython] Getting started With Pytest

[TalkPython] Getting started With Pytest [FCO]


Course Summary

This course teaches you to effectively use Python’s most popular and powerful test framework, pytest. pytest is partly so widely used because it’s so fast to get started. However, many people stop with the basics and never learn pytest’s true power.

In Getting started with pytest, you’ll do so much more than just get started. You’ll learn the five super powers of pytest: simple test functions, fixtures, parametrization, markers, and plugins. With this knowledge, you’ll be able to test more effectively and efficiently, whenever you need to write software tests.

Source code and course GitHub repository


What will you learn?

In this course, you will:

  • Build clean, readable, well structured test functions.
  • Utilize fixtures to hold setup, teardown, and test data.
  • Share fixtures between tests and between test files.
  • Trace test execution through tests and fixtures to help debug tests.
  • Use test parametrization to create reams of test cases with a small number of test functions.
  • Identify test parametrizations cleanly with test ids.
  • Learn to skip tests with markers.
  • Run subsets of tests using keywordsmarkerstest classes, and combinations of these techniques.
  • Expand pytest functionality with pytest plugins.
  • And lots more
  • View the full course outline.


Who is this course for?

This course is for anyone who needs to test Python code, or anything reachable via Python code. Yep, pytest is being used to test APIs, web services, embedded systems, hardware, and of course Python packages, applications, and utilities.

Since many people are writing test code alongside their other work, the techniques presented in this course are focused on those that help you be efficient and effective with pytest.

Of course you can use these techniques if you are spending most of your time writing tests.

This course will be useful for software engineers of all flavors, including test engineers.

As for prerequisites, we assume:

  • *No software testing experience required
  • Familiarity with Python would be helpful.

Who am I? Why should you take my course?

My name is Brian Okken. There are a couple of reasons I’m especially qualified to teach you pytest.

  1. I wrote the first book on pytest, now in it’s second edition, Python Testing with pytest.
  2. I host the #1 podcast on Python Testing, Test & Code.
  3. I’m experienced with pytest and Python testing. I’ve been using pytest to test Python applications and embedded C++ systems for over 10 years.
  4. I’m an experienced software engineer and lead engineer with 20+ years of industry experience. This is where I’ve learned to lean on efficient testing practices to help me write better applications faster.

Concepts backed by working code

Each chapter explores topics with working code. The code is all available to download or clone through GitHub. Each chapter is separated into directories.

While learning a topic, it’s really important to run the code yourself, and explore it. Change the code, see what happens. Add new tests, break existing tests, have fun.


Is this course based on Python 3 or Python 2?

This course is based upon Python 3. Python 2 is officially unsupported as of January 1st, 2020 and we believe that it would be ill-advised to teach or learn Python 2. This course is, and has always been, built around Python 3.


The time to act is now

pytest has become the defacto way we test Python software. If you are not up to speed with pytest and clean test practices, you’ll be at a disadvantage. This course is focused on using the best techniques to provide a deep and meaningful understanding of software testing with pytest. Take the course, level up your productivity today.


DURATION: 03:28:39 – RELEASED: 9/09/2022


Source: https://training.talkpython.fm/courses/getting-started-with-testing-in-python-using-pytest


Size: 416MB

Leave a Comment