Skip to content

Details

A presentation sponsored by Matterbeam

David Sturgis: Responsible Pytest Usage

PyTest is an increasingly popular framework for automated testing in Python. In some ways, it can be very simple and minimal compared to the classic xUnitistyle unittest module built into Python. But it also has "a learning curve", to put it mildly, and some very powerful, complex features. Some smart people (that I respect a lot) have told me that I should only use the simple, minimal features, and skip all the "fancy stuff". And after using, hacking on, and teaching people to use PyTest for a few years: I must disagree. Some of that stuff is frickin' cool. But where should we draw the line? What "essential" PyTest is worth your time and attention?

  • Philosophically: Less code, more tests!
  • At a high level, how does PyTest work? What happens when you run `pytest`?
  • How do PyTest plugins work? What can they do?
  • What are PyTest Marks? What can they do?
  • What are PyTest Fixtures? How do they work? What can they do

Finally: some of my favorite fun PyTest tricks, ranging from practical to clever to ridiculous

Socializing at 6, then the talk starts at 7. Pizza will be provided by Matterbeam.

Unfortunately we won't be able to stream or record this session.

AI summary

By Meetup

A presentation on responsible PyTest usage for Python developers, covering fixtures, marks, and plugins to write cleaner, more reliable tests.

You may also like