Test & Code : Python Testing
Because Software Engineering should include more testing
About the show
Test & Code is a weekly podcast hosted by Brian Okken.
The show covers a wide array of topics including software engineering, development, testing, Python programming, and many related topics.
When we get into the implementation specifics, that's usually Python, such as Python packaging, tox, pytest, and unittest. However, well over half of the topics are language agnostic, such as data science, DevOps, TDD, public speaking, mentoring, feature testing, NoSQL databases, end to end testing, automation, continuous integration, development methods, Selenium, the testing pyramid, and DevOps.
Test & Code : Python Testing on social media
Episodes
-
157: pre-commit - Anthony Sottile
June 11th, 2021 | 41 mins 40 secs
ci, code formatters, linters
pre-commit started as a framework for running linters and code formatters during git actions via git hooks. It's grown and expanded and now supports an extensive list of languages and actions and manual running of actions. But even at it's core, it's great for letting computers nitpick about whitespace and formatting, so that code reviews can focus on architecture and design.
Anthony Sottile discusses pre-commit, for using locally by developers, and pre-commit.ci, which can run actions during merge requests.
-
156: Flake8: Python linting framework with Pyflakes, pycodestyle, McCabe, and more - Anthony Sottile
June 3rd, 2021 | 22 mins 54 secs
flake8, linting, mccabe, pycodestyle, pyflakes, python
Flake8 is a command-line tool for linting Python projects.
By default, it includes lint checks provided Pyflakes, pycodestyle, and McCabe
But what does all of that mean?
Anthony Sottile is a maintainer of flake8 and has kindly offered to explain it to us. -
155: Four Questions to Ask Frequently During Software Projects - Tim Ottinger
May 28th, 2021 | 22 mins 48 secs
planning, software development, strategy
Tim Ottinger has four questions that work great in many situations, from doing homework, to cooking, to writing code, to entire software projects.
They are actually awesome questions to ask during a software project.
We discuss the questions, where they came from, and look at some uses in software.
-
154: Don't Mock your Database - Jeff Triplett
May 21st, 2021 | 31 mins 39 secs
databases, django, mocking, pytest, python, software testing
You need tests for your web app. And it has a database. What do you do with the database during testing? Should you use the real thing? or mock it? Jeff Triplett says don't mock it.
In this episode, we talk with Jeff about testing web applications, specifically Django apps, and of course talk about the downsides of database mocking.
-
153: Playwright for Python: end to end testing of web apps - Ryan Howard
May 13th, 2021 | 31 mins 29 secs
end to end, software testing, web app
Playwright is an end to end automated testing framework for web apps with Python support and even a pytest plugin.
-
152: Python Packaging - Brett Cannon
May 6th, 2021 | 49 mins 41 secs
I always learn a lot when I talk to Brett, and this episode is no exception.
We talk about the packaging workflow, tools, changes, pyproject.toml, flit, setuptools, and so much more.
I hope you learn as much as I did in this great discussion. -
151: Python Adventure - Brandon Rhodes
April 27th, 2021 | 56 mins 32 secs
adventure, fortran, gaming, python
Adventure, or Colossal Cave Adventure, was written between 1975 and 1977 in Fortran. Brandon Rhodes ported it to Python 3, initial release in 2011, and still maintains it. We talk to Brandon about this wonderful game.
-
150: A Practical Testing Strategy
April 15th, 2021 | 10 mins 34 secs
software testing, testing strategy
Coming up with a testing strategy doesn't have to be stressful. Prioritizing features to test, and generating test cases for each feature can be fairly quick and painless. This episode covers a strategy for both that can be applied to many types of software.
-
149: I don't test my code, "crappy Python" is all I write - Corey Quinn
March 30th, 2021 | 49 mins 35 secs
software testing
Corey Quinn is the Chief Cloud Economist at The Duckbill Group. He's also a podcaster and writes a newsletter. And he also automates things with Python. But he doesn't write tests. Let's find out why.
-
148: Coverage.py and testing packages
March 12th, 2021 | 14 mins 7 secs
coverage, pytest
How do you test installed packages using coverage.py?
-
147: Testing Single File Python Applications/Scripts with pytest and coverage
March 5th, 2021 | 11 mins 24 secs
pytest, script, single file application
Have you ever written a single file Python application or script?
Have you written tests for it?
Do you check code coverage?
This is the topic of this weeks episode, spurred on by a listener question. -
146: Automation Tools for Web App and API Development and Maintenance - Michael Kennedy
February 28th, 2021 | 48 mins 33 secs
automation, maintenance, web apis, web applications
Michael Kennedy joins the show this week to share some of the tools he uses during development and maintenance.
We talk about tools used for semi-automated exploratory testing.
We also talk about some of the other tools and techniques he uses to keep Talk Python Training, Talk Python, and Python Bytes all up and running smoothly. -
145: For Those About to Mock - Michael Foord
February 18th, 2021 | 48 mins 44 secs
mock, mocking, python, tdd, unittest
A discussion about mocking in Python with the original contributor of unittest.mock, Michael Foord.
-
144: TDD in Science - Martin Héroux
February 12th, 2021 | 53 mins 50 secs
scientific research, tdd, test driven development
Test Driven Development, TDD, is not easy to incorporate in your daily development.
Martin and Brian discuss TDD and testing and Martin's experience with testing, TDD, and using it for code involved with scientific research.
-
143: pytest markers - Anthony Sottile
February 7th, 2021 | 40 mins
markers, pytest, python, testing
Completely nerding out about pytest markers with Anthony Sottile.
-
142: MongoDB - Mark Smith
January 25th, 2021 | 35 mins 6 secs
document database, mongodb
MongoDB is possibly the most recognizable NoSQL document database.
Mark Smith, a developer advocate for MongoDB, answers my many questions about MongoDB.
We cover some basics, but also discuss some advanced features that I never knew about before this conversation.