Test and Code: 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:

Support Test & Code – Python Testing & Development

Links:

<p>There&#39;s a cool feature of pytest called parametrization.<br> It&#39;s totally one of the superpowers of pytest.</p> <p>It&#39;s actually a handful of features, and there are a few ways to approach it.<br> 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.</p> <p>Super powerful, but something since there&#39;s a few approaches to it, a tad tricky to get the hang of.</p><p>Sponsored By:</p><ul><li><a href=”https://testandcode.com/pycharm” rel=”nofollow”>PyCharm Professional</a>: <a href=”https://testandcode.com/pycharm” rel=”nofollow”>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.</a> Promo Code: TESTNCODE2019</li></ul><p><a href=”https://www.patreon.com/testpodcast” rel=”payment”>Support Test & Code – Python Testing & Development</a></p><p>Links:</p><ul><li><a href=”https://docs.pytest.org/en/latest/changelog.html” title=”pytest changelog” rel=”nofollow”>pytest changelog</a></li><li><a href=”https://docs.pytest.org/en/latest/deprecations.html#deprecations” title=”pytest deprecations and removals” rel=”nofollow”>pytest deprecations and removals</a></li><li><a href=”https://pragprog.com/book/bopytest/python-testing-with-pytest” title=”Python Testing with pytest” rel=”nofollow”>Python Testing with pytest</a> &mdash; Test function parametrization is in chapter 2. Fixture parametrization is in chapter 3.</li><li><a href=”https://docs.pytest.org/en/latest/parametrize.html” title=”Parametrizing test functions — pytest documentation” rel=”nofollow”>Parametrizing test functions — pytest documentation</a></li><li><a href=”https://docs.pytest.org/en/latest/fixture.html#fixture-parametrize” title=”pytest fixtures — pytest documentation” rel=”nofollow”>pytest fixtures — pytest documentation</a></li></ul>
Planet Python

Test and Code: 70: Non-traditional paths to software and the skills required – Dane Hillard

Dane and Brian discuss skills needed for people that become software developers from non-traditional paths.

Dane is also writing a book to address many of these skill gaps, Code Like a Pro, that’s currently in an early access phase. Use code podtest&code19 to get a discount. And, sign up as a Friend of the Show to enter for a chance to win a free copy of the eBook version.

We also discuss the writing process, testing with a multi-language stack, music, art, photography, and more.

Special Guest: Dane Hillard.

Sponsored By:

Support Test & Code – Software Testing, Development, Python

Links:

<p>Dane and Brian discuss skills needed for people that become software developers from non-traditional paths.</p> <p>Dane is also writing a book to address many of these skill gaps, <a href=”https://www.manning.com/books/code-like-a-pro” rel=”nofollow”>Code Like a Pro</a>, that&#39;s currently in an early access phase. Use code podtest&amp;code19 to get a discount. And, sign up as a <a href=”https://testandcode.com/friends-of-the-show” rel=”nofollow”>Friend of the Show</a> to enter for a chance to win a free copy of the eBook version.</p> <p>We also discuss the writing process, testing with a multi-language stack, music, art, photography, and more.</p><p>Special Guest: Dane Hillard.</p><p>Sponsored By:</p><ul><li><a rel=”nofollow” href=”https://testandcode.com/morsels”>Python Morsels</a>: <a rel=”nofollow” href=”https://testandcode.com/morsels”>Expand your knowledge of Python at your pace, with expertly curated problems and solutions.</a></li></ul><p><a rel=”payment” href=”https://www.patreon.com/testpodcast”>Support Test &amp; Code – Software Testing, Development, Python</a></p><p>Links:</p><ul><li><a title=”Dane Hillard” rel=”nofollow” href=”https://dane.engineering/”>Dane Hillard</a></li><li><a title=”Code Like a Pro” rel=”nofollow” href=”https://www.manning.com/books/code-like-a-pro”>Code Like a Pro</a> &mdash; Dane’s book</li><li><a title=”Noisely” rel=”nofollow” href=”https://www.noisely.com/”>Noisely</a></li><li><a title=”Little Leviathan” rel=”nofollow” href=”https://littleleviathan.com/”>Little Leviathan</a> &mdash; Dane’s music</li><li><a title=”Dane Hillard Photography” rel=”nofollow” href=”https://www.danehillard.com/”>Dane Hillard Photography</a> &mdash; Dane’s photography</li><li><a title=”Nvidia AI turns sketches into photorealistic landscapes in seconds” rel=”nofollow” href=”https://techcrunch.com/2019/03/18/nvidia-ai-turns-sketches-into-photorealistic-landscapes-in-seconds/”>Nvidia AI turns sketches into photorealistic landscapes in seconds</a></li></ul>
Planet Python