Python Test Brian Okken
-
- Technology
Practical automated testing for software engineers using Python.
Mostly. But also so much more.
-
216: ruff, uv, and Astral: Python tooling, much faster, with Rust
Charlie Marsh and team are using Rust to make Python tooling faster.
Ruff can take the place of Flake8, isort, and Black, and so much more.uv can take the place of pip, pip-tools, and virtualenvAstral is Charlie's venture backed company, and what they have with `ruff` and `uv` is just the start.Since uv is the newest tool, there's quite a bit of the discussion diving into uv.
Links:
ruffAstraluv
Sponsored by PyCharm Pro
Use code PYTEST for 20% off PyCharm Professional at jetbrains.com/pycharmFirst 10 to sign up this month get a free month of AI AssistantSee how easy it is to run pytest from PyCharm at pythontest.com/pycharmThe Complete pytest Course
For the fastest way to learn pytest, go to courses.pythontest.comWhether your new to testing or pytest, or just want to maximize your efficiency and effectiveness when testing. -
215: Staying Technical as a Manager
Software engineers that move into leadership roles have a struggle between learning leadership skills, maintaining technical skills, and learning new leadership and technical skills. Matt Makai went from individual contributor to developer relations to leadership in devrel. We discuss how to stay technical, as well as dive into some results of his studies in how companies use developer relationship channels.
Sponsored by PyCharm Pro
Use code PYTEST for 20% off PyCharm Professional at jetbrains.com/pycharmFirst 10 to sign up this month get a free month of AI AssistantSee how easy it is to run pytest from PyCharm at pythontest.com/pycharmThe Complete pytest Course
For the fastest way to learn pytest, go to courses.pythontest.comWhether your new to testing or pytest, or just want to maximize your efficiency and effectiveness when testing. -
214: Python Testing in VS Code
If you haven't tried running automated tests, especially with pytest, in VS Code recently, you should take another look.The Python for VS Code interface for testing, especially for pytest, has changed recently. On this episode we discuss the change with the software engineer working on the pytest changes, Eleanor Boyd, and the product manager, Courtney Webster.
Links from the episode:
Blog post announcing the rewrite Code repo for questions, comments, issues etc
The Complete pytest Course
Level up your testing skills and save time during coding and maintenance.Check out courses.pythontest.com -
213: Repeating Tests
If a test fails in a test suite, I'm going to want to re-run the test. I may even want to re-run a test, or a subset of the suite, a bunch of times. There are a few pytest plugins that help with this:
pytest-repeatpytest-rerunfailurespytest-flakefinderpytest-instafailWe talk about each of these in this episode.
Sponsored by PyCharm Pro
Use code PYTEST for 20% off PyCharm Professional at jetbrains.com/pycharmFirst 10 to sign up this month get a free month of AI AssistantSee how easy it is to run pytest from PyCharm at pythontest.com/pycharmThe Complete pytest Course
For the fastest way to learn pytest, go to courses.pythontest.comWhether your new to testing or pytest, or just want to maximize your efficiency and effectiveness when testing. -
212: Canon TDD - by Kent Beck
In 2002, Kent Beck released a book called "Test Driven Development by Example".In December of 2023, Kent wrote an article called "Canon TDD".With Kent's permission, this episode contains the full content of the article.
Brian's commentary is saved for a followup episode.
Links:
Canon TDDTest Driven Development by Example
The Complete pytest Course
Level up your testing skills and save time during coding and maintenance.Check out courses.pythontest.com -
211: Stamp out test dependencies with pytest plugins
We want to be able to run tests in a suite, and debug them in isolation, and have the behavior be the same. If the behavior is different in isolation vs in a suite, it's a nightmare to debug.
In this episode, we'll talk about:
Causes of dependenceTesting for dependencies using pluginsDebugging test dependenciesPlugins discussed:
pytest-randomlypytest-reversepytest-random-order
Sponsored by PyCharm Pro
Use code PYTEST for 20% off PyCharm Professional at jetbrains.com/pycharmFirst 10 to sign up this month get a free month of AI AssistantSee how easy it is to run pytest from PyCharm at pythontest.com/pycharmThe Complete pytest Course
For the fastest way to learn pytest, go to courses.pythontest.comWhether your new to testing or pytest, or just want to maximize your efficiency and effectiveness when testing.