Testing Container Images with Python and Pytest - Container Plumbing Days 2023 @RedHatOpen
Testing Container Images with Python and Pytest - Container Plumbing Days 2023  @RedHatOpen
Uploaded April 2023 | Updated September 2026, 6 hours ago
Presenters: Dan Čermák (SUSE)

Session Type: Presentation (25min)

Topics: Testing, CI & QA, python, pytest, pytest_container

Session Details:
To ease the pain of testing container images, we’ve developed the pytest_container plugin for pytest. The plugin makes it possible to use pytest to perform tests on containers and software inside containers. You don’t have to take care of pulling images, building them, or picking ports on the host. You just describe your container setup and pass it to a test function. In return, the plugin gives you a connection to the container. Using the connection, you can verify the container’s state using the testinfra python framework. The plugin even cleans up after itself when you’re done.

In short, pytest_container makes it possible to write tests in Python: no need to build your own framework from scratch or worry about the boring container plumbing tasks.

Join this talk to see pytest_container in action and learn how it can make your life easier!

More info: containerplumbing.org/schedule
Testing Container Images with Python and Pytest - Container Plumbing Days 2023Research Days 2023: Fluid Network Control and Data Plane ResearchResearch Days 2022: AI for Cloud OpsBuilding and Deploying a Privacy Preserving Data Analysis Platform - Red Hat Research Days US 2020Community Central: Revisiting ChRIS: Solutions for the Front Line of MedicinePre-Flock 2026 Open Forum - 2026-06-03Fedora build infrastructure shortage negatively impact packagers for Fedora/CentOS/RHEL - 2026-05-06Why was nerdctl made? - Container Plumbing Days 2023How is AI Making Open Source Better?RDO and CentOS AMA - January 21. 2021The Open Road: Why Should My Project Join Your Foundation?Dataverse and OpenDP: Tools for Privacy-Protective Analysis in the Cloud
Red Hat Open |

Testing Container Images with Python and Pytest - Container Plumbing Days 2023

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER