Episodes
Taking notes well can help to listen better, remember things, show respect, be more accountable, free up mind space to solve problems.
This episode discusses
the benefits of writing things downpreparing for a meetingtaking notes in meetingsreviewing notes for action items, todo items, things to follow up on, etc.taking notes to allow for better focuswriting well structured emailswriting blog posts and books
Learn pytest
pytest is the number one test framework for Python.Learn the basics...
Published 11/17/24
In this episode we're talking about importing part of a package into another part of the same package.
We'll look at: `from . import module` and `from .module import something`
and also: `import package` to access the external API from with the package.
Why would we use `import package` if `from . import api` would work fine?
Learn pytest
pytest is the number one test framework for Python.Learn the basics super fast with Hello, pytest!Then later you can become a pytest expert with The...
Published 09/07/24
We've got some code we want to test, and some tests.The tests need to be able to import the code under test, or at least the API to it, in order to run tests against it.How do we do that? How do we set things up so that our tests can import our code?
In this episode, we discuss two options:
Installing the code under test as a pip installable package with `pip install -e /path/to/local/package`.Using the pythonpath pytest setting.
Sponsored by Mailtrap.io
An Email Delivery Platform that...
Published 06/03/24
PyCon US is just around the corner. I've asked Rob Ludwick to come on the show to discuss how to get the most out of your PyCon experience. There's a lot to do. A lot of activities to juggle, including actual juggling, which is where we start the conversation.
Even if you never get a chance to go to PyCon, I hope this interview helps you get a feel for the welcoming aspect of the Python community.
I recorded this interview as an episode for one of my other podcasts, Python People. But I...
Published 05/04/24
I'm starting a SaaS project using Django, and there are tons of decisions right out of the gate. To help me navigate these decisions, I've brought on Cory Zue. Cory is the creator of SaaS Pegasus, and has tons of experience with Django.
Some of the topics discussed:
Building Django applicationsSaaS Pegasusplacecard.meWhat boilerplate projects areDjango cookiecutterCookiecutterWhich database to use, probably PostgreSQLAuthentication choises, probably AllauthDocker, Docker for development,...
Published 04/24/24
Nicole is a software engineer and writer, and recently wrote about the trade-offs we make when deciding which tests to write and how much testing is enough.
We talk about:
Balancing schedule vs testingHow much testing is the right about of testingShould code coverage be measured and trackedGood refactoring can reduce code coverageIs it worth testing error conditions?Are rare error codes ok to just monitor?API drift and autospecMitigating riskDeciding what to test and what not to testFocus...
Published 04/18/24
If you've ever thought about starting a podcast or a SaaS project, you'll want to listen to this episode. Justin is one of the people who motivated me to get started podcasting. He's also running a successful SaaS company, transistor.fm, which hosts this podcast.
Topics:
PodcastingBuilding new SaaS (software as a service) productsBalancing work, side hustle, and familyGreat places to snowboard in British ColumbiaBTW. This episode was recorded last summer before I switched to transistor.fm.I'm...
Published 04/11/24
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...
Published 03/11/24
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...
Published 02/25/24
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...
Published 02/07/24
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...
Published 01/19/24
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
Published 01/13/24
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...
Published 12/15/23
Test Driven Development. Red, Green, Refactor.
Do we have to do the refactor part?
Does the refactor at the end include tests?
Or can I refactor the tests at any time?
Why is refactor at the end?
This episode is to talk about this with a an example.
Sponsored by PyCharm Pro
Use code PYTEST for 20% off PyCharm Professional at jetbrains.com/pycharm
First 10 to sign up this month get a free month of AI Assistant
See how easy it is to run pytest from PyCharm at pythontest.com/pycharm
The...
Published 11/30/23
How do you test the argument parsing bit of an application that uses argparse?
This episode covers:
Design for Test: Structuring your app or script so it's easier to test.
pytest & capsys for testing stdout
Adding debug and preview flags for debugging and testing
And reverting to subprocess.run if you can't modify the code under test
Also, there's a full writeup and code samples available:
Blog post: Testing argparse Applications
Code Repo
The Complete pytest Course
For the fastest...
Published 11/16/23
Why on earth would you want to write a test with no assert statements?After all, aren't assert statements how you decide wether a test passes or fails?
In this episode, we walk through a handful of useful examples of test code without asserts.We also talk about how these types of tests are a great way to dip your toe into testing.
Sponsored by PyCharm Pro
Use code PYTEST for 20% off PyCharm Professional at jetbrains.com/pycharm
First 10 to sign up this month get a free month of AI...
Published 10/30/23
Podcast name: "Test & Code" -> "Python Test"
Python Bytes Podcast
Python People Podcast
Python Test Podcast - you are herewhich is still, at least for now, at testandcode.com
New course: "The Complete pytest Course"
pytest-repeat, which I'm starting to contribute toGive `--repeat-scope` a try. You can use it to change from repeating every test to repeating the session, module, or class.
pytest-flakefinder, which is an alternative to pytest-repeat
pytest-check is completely...
Published 09/26/23
TDD (Test Driven Development) started from Test First Programming, and has been around at least since the 90's.
However, software tools and available CI systems have changed quite a bit since then. Maybe it's time to re-examine the assumptions, practices, processes, and principles of TDD. At least in the context of my software engineering career, modifications to TDD, at least the version of TDD as it's frequently taught, have been necessary.
This is the start of a series focused on...
Published 08/23/23
On a recent episode of PythonBytes, I suggested it's hard to come up with good examples for pytest autouse fixtures, as there aren't very many good reasons to use them. James Falcon was kind enough to reach out and correct me.
In this episode, we describe:
what fixtures are
what autouse fixtures are
great reasons to use them
If you like Test & Code, I think you'll also like Python People
Python People is a new podcast about getting to know the people who make Python and our community...
Published 08/01/23
Learn how to write nonfiction fast and well.Johanna Rothman joins the show to discuss writing nonfiction.
Johanna's book: Free Your Inner Nonfiction Writer
If you like Test & Code, I think you'll also like Python People
Python People is a new podcast about getting to know the people who make Python and our community awesome.
Be sure to check out pythonpeople.fm.
Published 07/18/23
Open Source is important to Intel and has been for a very long time.
Joe Curley, vice president and general manager of software products and ecosystem, and Arun Gupta, vice president and general manager for open ecosystems, join the show to discuss open source, OneAPI, and open ecosystems at Intel.
If you like Test & Code, I think you'll also like Python People
Python People is a new podcast about getting to know the people who make Python and our community awesome.
Be sure to check...
Published 07/17/23
Hynek joins the show to discuss towncrier.
At the top of the towncrier documentation, it says "towncrier is a utility to produce useful, summarized news files (also known as changelogs) for your project."
Towncrier is used by "Twisted, pytest, pip, BuildBot, and attrs, among others."
This is the last of 3 episodes focused on keeping a CHANGELOG.
Episode 200 kicked off the series with keepachangelog.com and Olivier Lacan
In 201 we had Ned Batchelder discussing scriv.
Special Guest:...
Published 05/31/23
Last week we talked about the importance of keeping a changelog.
This week we talk with Ned Batchelder about scriv, a tool to help maintain that changelog.
Scriv "is a command-line tool for helping developers maintain useful changelogs. It manages a directory of changelog fragments. It aggregates them into entries in a CHANGELOG file."
Special Guest: Ned Batchelder.
Sponsored By:
porkbun: A refreshingly different domain name registrar.
Get a free .app or .dev domain name by using this...
Published 05/25/23
A changelog is a file which contains a curated, chronologically ordered list of notable changes for each version of a project.
This episode is about what a changelog is, with an interview with Olivier Lacan, creator of keepachangelog.com.
The next two episodes talk about some tools to help software project teams keep changelogs while avoiding merge conflicts.
Special Guest: Olivier Lacan.
Sponsored By:
porkbun: A refreshingly different domain name registrar.
Get a free .app or .dev...
Published 05/19/23