

Test & Code
Brian Okken
The Python Test Podcast hosted by Brian Okken
Episodes
Mentioned books

Jun 18, 2020 • 49min
117: Python extension for VS Code - Brett Cannon
The Python extension for VS Code is most downloaded extension for VS Code. Brett Cannon is the manager for the distributed development team of the Python extension for VS Code.In this episode, Brett and I discuss the Python extension and VS Code, including:pytest supportvirtual environment supporthow settings work, including user and workspace settingsmulti root projectstesting Python in VS Codedebugging and pydevdjump to cursor featureupcoming featuresSpecial Guest: Brett Cannon.Links:Brett Cannon on ChangelogJohn WickBallerinaFrank Willison AwardPython extension for VS Codeepisode 117 : How IDEs can make software testing easier - Paul EverittUser and Workspace Settingsvirtual environmentsTesting Python in VS CodepydevdJump to Cursor in Feb VS Code Python blog

Jun 8, 2020 • 50min
116: 15 amazing pytest plugins - Michael Kennedy
pytest plugins are an amazing way to supercharge your test suites, leveraging great solutions from people solving test problems all over the world. In this episode Michael and I discuss 15 favorite plugins that you should know about.We also discuss fixtures and plugins and other testing tools that work great with pytesttoxGitHub ActionsCoverage.pySelenium + splinter with pytest-splinterHypothesisAnd then our list of pytest plugins:pytest-sugar pytest-cov pytest-stress pytest-repeat pytest-instafail pytest-metadatapytest-randomlypytest-xdist pytest-flake8 pytest-timeout pytest-spec pytest-picked pytest-freezegun pytest-check fluentcheckThat last one isn't a plugin, but we also talked about pytest-splinter at the beginning. So I think it still counts as 15.Special Guest: Michael Kennedy.Links:pytest-sugar — changes the default look and feel of pyptest (e.g. progressbar, show tests that fail instantly)pytest-cov — run coverage.py from pytestpytest-stress — allows you to loop tests for a user defined amount of time.pytest-repeat — for repeating test executionpytest-instafail — shows failures and errors instantly instead of waiting until the end of test session.pytest-metadata — for accessing test session metadatapytest-randomly — randomly order tests and control random.seedpytest-xdist — distributed testingpytest-flake8 — pytest plugin to run flake8pytest-timeout — terminate tests after a certain timeoutpytest-spec — display test execution output like a specificationpytest-picked — run the tests related to the changed files (according to Git)pytest-freezegun — easily freeze timepytest-check — allows multiple failures per testfluentcheck — fluent assertionsepisode 104 — Top 28 pytest plugins with Anthony SottilePython Testing with pytest — The easiest way to get up to speed with pytest fast. There's also a chapter dedicated to plugins that also teaches you how to write and test your own plugins.toxGitHub ActionsCoverage.pypytest-splinter — provides a set of fixtures to use splinter for browser testingsplinter — makes it easy to write automated tests of web applicationshypothesis — property-based testingTalk Python Episode #267 — This episode is a cross post with Talk Python

May 30, 2020 • 40min
115: Catching up with Nina Zakharenko
One of the great things about attending in person coding conferences, such as PyCon, is the hallway track, where you can catch up with people you haven't seen for possibly a year, or maybe even the first time you've met in person. Nina is starting something like the hallway track, online, on twitch, and it's already going, so check out the first episode of Python Tea.Interesting coincidence is that this episode is kind of like a hallway track discussion between Nina and Brian.We've had Nina on the show a couple times before, but it's been a while. In 2018, we talked about Mentoring on episode 44. In 2019, we talked about giving Memorable Tech Talks in episode 71.In this episode, we catch up with Nina, find out what she's doing, and talk about a bunch of stuff, including:Live CodingOnline ConferencesMicrosoft Python teamPython Tea, an online hallway trackQ&A with Python for VS Code teamPython on hardwareAdafruitDevice Simulator ExpressCircuitPythonTricking out your command promptZsh and Oh My ZshEmacs vs vi key bindings for shells Working from homeSpecial Guest: Nina Zakharenko.Links:nnjaio - TwitchNina Zakharenko 💜🐍 (@nnja) / TwitterDevice Simulator Express - Visual Studio MarketplaceInitial code for Microsoft's PyBadge at PyCon 2020Goodbye Print, Hello Debugger! - Nina Zakharenko - PyCon 2020 Talk 𝙽𝚒𝚗𝚊 𝚉𝚊𝚔𝚑𝚊𝚛𝚎𝚗𝚔𝚘 💜🐍 - DEV.toPython Tea AnnouncementThe Live Coders Conference

May 24, 2020 • 30min
114: The Python Software Foundation (PSF) Board Elections - Ewa Jodlowska / Christopher Neugebauer
"The mission of the Python Software Foundation is to promote, protect, and advance the Python programming language, and to support and facilitate the growth of a diverse and international community of Python programmers."That's a lot of responsibility, and to that end, the PSF Board Directors help out quite a bit. If you want to be a part of the board, you can. There's an election coming up right around the corner and you gotta get your nomination in by May 31. You can also join the PSF if you want to vote for who gets to be part of the board. But what does it really mean to be on the Board, and what are some of the things the PSF does? To help answer those questions, I've got Ewa Jodlowska, the PSF Executive Director, and Christopher Neugebauer, a current board member, on the show today. I've also got some great links in the show notes if we don't answer your questions and you want to find out more.Special Guests: Christopher Neugebauer and Ewa Jodlowska.Links:Latest PSF Board Elections DiscussionPython Software FoundationOverview of ElectionsDuties and Responsibilities of DirectorsLife as a Python Software Foundation Director - YouTube

May 15, 2020 • 28min
113: Technical Debt - James Smith
Technical debt has to be dealt with on a regular basis to have a healthy product and development team.The impacts of technical debt include emotional drain on engineers and slowing down development and can adversely affect your hiring ability and retention.But really, what is technical debt? Can we measure it? How do we reduce it, and when?James Smith, the CEO of Bugsnag, joins the show to talk about technical debt and all of these questions.Special Guest: James Smith.

May 8, 2020 • 44min
112: Six Principles of Readable Tests - David Seddon
"Code is read much more often than it is written." - Guido van Rossum This is true for both production code and test code.When you are trying to understand why a test is failing, you'll be very grateful to the test author if they've taken the care to make it readable.David Seddon came up with 6 principles to help us write more readable tests. We discuss these, as well as more benefits of readable tests.David's 6 Principles of Readable Tests:Profit from the work of othersPut naming to workShow only what mattersDon’t repeat yourselfArrange, act, assertAim highSpecial Guest: David Seddon.Links:How to write readable tests (presentation) · David SeddonHow to write readable tests (slides)pytestWebTest factory_boydjango-webtest

May 2, 2020 • 47min
111: Subtests in Python with unittest and pytest - Paul Ganssle
In both unittest and pytest, when a test function hits a failing assert, the test stops and is marked as a failed test. What if you want to keep going, and check more things? There are a few ways. One of them is subtests.Python's unittest introduced subtests in Python 3.4. pytest introduced support for subtests with changes in pytest 4.4 and a plugin, called pytest-subtests. Subtests are still not really used that much.But really, what are they? When could you use them? And more importantly, what should you watch out for if you decide to use them?That's what Paul Ganssle and I will be talking about today.Special Guest: Paul Ganssle.Links:Subtests in Python — Paul's article on subtestssubtests in unittest - Python docs pytest-subtests: plugin to support subtests in pytestpytest-check: A pytest plugin that allows multiple failures per test.

Apr 25, 2020 • 24min
110: Testing Django - from unittest to pytest - Adam Parkin
Django supports testing out of the box with some cool extensions to unittest. However, many people are using pytest for their Django testing, mostly using the pytest-django plugin.Adam Parkin, who is known online as CodependentCodr, joins us to talk about migrating an existing Django project from unittest to pytest. Adam tells us just how easy this is.Special Guest: Adam Parkin.Links:Django Tutorial, on testingThe Django docs on testing & the test databaseThe Django docs on the TestCase classpytest-django docs

Apr 14, 2020 • 29min
109: Testing in Financial Services - Eric Bergemann
Financial services have their own unique testing development challenges. But they also have lots of the same challenges as many other software projects. Eric Bergemann joins Brian Okken to discuss:Specific testing challenges in the financial services domainCI/CD : Continuous Integration, Continuous DeploymentTDD : Test Driven DevelopmentConfidence from testable applicationsTesting strategies to add coverage to legacy systemsTesting the data and test cases themselvesDevOpsContinuous testingManual testing proceduresBDD & GherkinHiring in vs training industry knowledgeSpecial Guest: Eric Bergemann.Links:ParagonThe Phoenix Project: A Novel about IT, DevOps, and Helping Your Business Win

Apr 9, 2020 • 31min
108: PySpark - Jonathan Rioux
Apache Spark is a unified analytics engine for large-scale data processing. PySpark blends the powerful Spark big data processing engine with the Python programming language to provide a data analysis platform that can scale up for nearly any task.Johnathan Rioux, author of "PySpark in Action", joins the show and gives us a great introduction of Spark and PySpark to help us decide how to get started and decide whether or not to decide if Spark and PySpark are right you.Special Guest: Jonathan Rioux.Links:PySpark in ActionSparkPySpark documentationJoel Grus, livecoding