"Adopt-a-pytest" - Dane Hillard (Pyohio 2019)
Channel: PyOhio
Date: 2019-08-10

Dane Hillard

https://www.pyohio.org/2019/presentations/89

## Who

This is for anyone currently using `unittest` for Python unit testing that would like to adopt `pytest`.

## Takeaways

* How to run `pytest`
* How to create a basic `pytest` configuration
* Using `pytest` marks to shim an existing project
* Converting a `unittest` test to `pytest`

## What

With its simplified syntax, powerful fixture behaviors, detailed test reports, and plugin-based architecture, `pytest` has a lot to offer. Whether you're new to Python unit testing or you've been using `unittest` for a while, `pytest` may be something to consider. It's not too hard to get up and running with `pytest` on a fresh project, but how can you retrofit an existing project without having to refactor the world all at once?

pytest is a testing framework that makes writing and running Python tests simpler. Adopting new tooling in a large system is often a burden. How can you introduce pytest gradually with minimal pain?

===
https://pyohio.org

A FREE annual conference for anyone interested in Python in and around Ohio, the entire Midwest, maybe even the whole world.

Produced by NDV: https://youtube.com/channel/UCQ7dFBzZGlBvtU2hCecsBBg?sub_confirmation=1

Sat Jul 27 11:15:00 2019 at Cartoon 2