Test & Code :  Python Testing for Software Engineering

Test & Code is a weekly podcast hosted by Brian Okken. The show covers a wide array of topics including software engineering, development, testing, Python programming, and many related topics. When we get into the implementation specifics, that's usually Python, such as Python packaging, tox, pytest, and unittest. However, well over half of the topics are language agnostic, such as data science, DevOps, TDD, public speaking, mentoring, feature testing, NoSQL databases, end to end testing, automation, continuous integration, development methods, Selenium, the testing pyramid, and DevOps.



episode 87: Paths to Parametrization - from one test to many

There's a cool feature of pytest called parametrization.
It's totally one of the superpowers of pytest.

It's actually a handful of features, and there are a few ways to approach it.
Parametrization is the ability to take one test, and send lots of different input datasets into the code under test, and maybe even have different output checks, all within the same test that you developed in the simple test case.

Super powerful, but something since there's a few approaches to it, a tad tricky to get the hang of.

Sponsored By:

  • PyCharm Professional: Try PyCharm Pro for 4 months. Offer good through June 10. Try out Pro features like integrated coverage and profiling, and extended support for Django, Flask, Pyramid, Cython, and more. Promo Code: TESTNCODE2019

Support Test & Code - Python Testing & Development


  • pytest changelog
  • pytest deprecations and removals
  • Python Testing with pytest — Test function parametrization is in chapter 2. Fixture parametrization is in chapter 3.
  • Parametrizing test functions — pytest documentation
  • pytest fixtures — pytest documentation


 2019-09-11  19m