Skip to content
125: pytest 6 - Anthony Sottile episode artwork

Aug 7, 2020 59 min

125: pytest 6 - Anthony Sottile

from Test & Code Hosted by Brian Okken

pytest 6 is out. Specifically, 6.0.1, as of July 31. And there's lots to be excited about. Anthony Sottile joins the show to discuss features, improvements, documentation updates and more. Full release notes / changelog Some of what we talk about: How to update (at least, how I do it) Run your test suites with 5.4.3 or whatever the last version you were using Update to 6 Run again. Same output? Probably good. If there are any warnings, maybe fix those. You can also run with pytest -W error to turn warnings into errors. Then find out all the cool stuff you can do now New Features pytest now supports pyproject.toml files for configuration. but remember, toml syntax is different than ini files. mostly quotes are needed pytest now includes inline type annotations and exposes them to user programs. Most of the user-facing API is covered, as well as internal code. New command-line flags --no-header and --no-summary A warning is now shown when an unknown key is read from a config INI file. The --strict-config flag has been added to treat these warnings as errors. New required_plugins configuration option allows the user to specify a list of plugins, including version information, that are required for pytest to run. An error is raised if any required plugins are not found when running pytest. Improvements You can now pass output to things like less and head that close the pipe passed to them. thank you!!! Improved precision of test durations measurement. use --durations=10 -vv to capture and show durations Rich comparison for dataclasses and attrs-classes is now recursive. pytest --version now displays just the pytest version, while pytest --version --version displays more verbose information including plugins. --junitxml now includes the exception cause in the message XML attribute for failures during setup and teardown. Improved Documentation Add a note about --strict and --strict-markers and the preference for the latter one. Explain indirect parametrization and markers for fixtures. Bug Fixes Deprecations Trivial/Internal Changes Breaking Changes you might need to care about before upgrading PytestDeprecationWarning are now errors by default. Check the deprecations and removals page if you are curious. -k and -m internals were rewritten to stop using eval(), this results in a few slight changes but overall makes them much more consistent testdir.run().parseoutcomes() now always returns the parsed nouns in plural form. I'd say that's an improvement Special Guest: Anthony Sottile. Links: pytest Changelog / Release Notes Deprecations and Removals — pytest documentation

Episode details come from the podcast's RSS feed.

Embed this episode

Ready to play

125: pytest 6 - Anthony Sottile

0:00 59:16

No transcript yet.

Requests help us decide what to transcribe next.

French Your Way Jessica: Native French teacher founder of French Your Way Boost your French listening skills and test your comprehension with this one of a kind series of podcasts. Get the chance to listen to a real conversation between native speakers talking at normal speed AND customise your learning experience through carefully designed sets of questions (2 levels of difficulty) available for download at www.frenchvoicespodcast.com. All interviews also come with the transcript. French teacher Jessica interviews native speakers of French from around the world who share a bit of their life and passion. Where else would you meet in one same place a French yoga teacher based in Melbourne, a soap manufacturer from Provence, or a couple cycling around the world? Insurance Exam Queen Melissa Dillon Hi, I am Melissa, the Insurance Exam Queen. I’m the most requested Exam Prep Instructor in the U.S. and have helped thousands of people pass their Property & Casualty and Life & Health insurance exam with ease. With a long string of ONLY 5 star reviews, I’ve become known for my casual and simple teaching style, and my students love the fun memorization techniques, charts, graphs and other visual aides I use to help you understand the material. Most of my students pass their 1st or next time after going through one of my Class Series Packages. I simplify everything, tell you what to study, and even include everything from Study Notes to my own personal Practice Test to help you focus ONLY on what you need to know in order to pass the test. View my packages here: http://www.insuranceexamqueen.com Code Together Code Together Code Together is an interview series that explores challenges at the forefront of cross-architecture development. We’ll talk with those at Intel and across the industry who are forging a path on this often treacherous journey through an increasingly diverse, data-centric world. Join the conversation at oneapi.com. French Voices Podcast | Learn French | Interviews with Native French Speakers | French Culture Jessica: Native French teacher, founder of French Your Way French teacher Jessica interviews native speakers of French from around the world who share a bit of their life and passion. Learn French and boost your listening skills as you get the chance to follow a real conversation between native French people talking at normal speed AND customise your French learning experience. All interviews come with questions to test your comprehension, transcription and a list of specific French vocabulary available for free download at http://www.frenchvoicespodcast.com. Get a slice of French culture! Where else would you meet in one same place a French yoga teacher based in Melbourne, a soap manufacturer from Provence, or a couple cycling around the world? Suitable for upper intermediate and advanced students of French.

Frequently asked questions

How long is this episode of Test & Code?

This episode is 59 minutes long.

When was this Test & Code episode published?

This episode was published on August 7, 2020.

Can I download this Test & Code episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.