Login  | Home

Test and Code: 90: Dynamic Scope Fixtures in pytest 5.2 - Anthony Sotille

Go back


Article:

(published: Oct. 11, 2019, 7 a.m.)

pytest 5.2 was just released, and with it, a cool fun feature called dynamic scope fixtures. Anthony Sotille so tilly is one of the pytest core developers, so I thought it be fun to have Anthony describe this new feature for us.

We also talk about parametrized testing and really what is fixture scope and then what is dynamic scope.

Special Guest: Anthony Sottile.

Sponsored By:

Support Test & Code - Python Testing & Development

Links:

<p>pytest 5.2 was just released, and with it, a cool fun feature called dynamic scope fixtures. Anthony Sotille so tilly is one of the pytest core developers, so I thought it be fun to have Anthony describe this new feature for us.</p> <p>We also talk about parametrized testing and really what is fixture scope and then what is dynamic scope.</p><p>Special Guest: Anthony Sottile.</p><p>Sponsored By:</p><ul><li><a href="https://testandcode.com/raygun" rel="nofollow">Raygun</a>: <a href="https://testandcode.com/raygun" rel="nofollow">Detect, diagnose, and destroy Python errors that are affecting your customers. With smart Python error monitoring software from Raygun.com, you can be alerted to issues affecting your users the second they happen.</a></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://pytest.org/en/latest/changelog.html" title="pytest changelog" rel="nofollow">pytest changelog</a></li><li><a href="https://docs.pytest.org/en/latest/fixture.html#scope-sharing-a-fixture-instance-across-tests-in-a-class-module-or-session" title="pytest fixtures" rel="nofollow">pytest fixtures</a></li><li><a href="https://docs.pytest.org/en/latest/fixture.html#dynamic-scope" title="dynamic scope fixtures" rel="nofollow">dynamic scope fixtures</a></li><li><a href="https://testandcode.com/82" title="episode 82: pytest - favorite features since 3.0 " rel="nofollow">episode 82: pytest - favorite features since 3.0 </a></li><li><a href="https://amzn.to/2QnzvUv" title="the pytest book" rel="nofollow">the pytest book</a> &mdash; Python Testing with pytest</li></ul>