Test & Code - Python Testing & Development
125: pytest 6 - Anthony Sottile
- Author: Vários
- Narrator: Vários
- Publisher: Podcast
- Duration: 0:59:16
- More information
Informações:
Synopsis
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 / changelogSome 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 usingUpdate to 6Run 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 nowNew 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-summaryA warning is now shown when an unknown key is read from a config INI file. The --strict-config flag has been add