Test & Code

Brian Okken
undefined
Apr 27, 2023 • 1h 2min

198: Testing Django Web Applications - Carlton Gibson, Will Vincent

Django has some built in ways to test your application. There's also pytest-django and other plugins that help with testing. Carlton Gibson and Will Vincent from the Django Chat Podcast join the show to discuss how to get started testing your Django application.
undefined
Apr 5, 2023 • 34min

197: Python project trove classifiers - Do you need this bit of pyproject.toml metadata? - Brett Cannon

Classifiers are one bit of Python project metadata that predates PyPI. Classifiers are weird. They were around in setuptools days, and are still here with pyproject.toml. What are they? Why do we need them? Do we need them?Which classifiers should I include?Why are they called "trove classifiers" in the Python docsBrett Cannon joins the show to discuss these wacky bits of metadata.Here's an example, from pytest-crayons:[project] ... classifiers = [ "License :: OSI Approved :: MIT License", "Framework :: Pytest" ] Links:Classifiers · PyPIPEP 621 – Storing project metadata in pyproject.toml | peps.python.orgPackaging Python Projects — Python Packaging User Guide — Configuring metadataPEP 639 – Improving License Clarity with Better Package Metadata | peps.python.orgSPDX
undefined
Mar 31, 2023 • 37min

196: I am not a supplier - Thomas Depierre

Should we think of open source components the same way we think of physical parts for manufactured goods? There are problems with supply chain analogy when applied to software. Thomas Depierre discusses some of those issues in this episode. Links:I am not a supplier - article
undefined
Mar 8, 2023 • 58min

195: What would you change about pytest? - Anthony Sottile

Anthony Sottile and Brian discuss changes that would be cool for pytest, even unrealistic changes. These are changes we'd make to pytest if we didn't ahve to care about backwards compatibilty.Anthony's list:The import systemMulti-process support out of the boxAsync supportChanges to the fixture systemExtend the assert rewriting to make it modularAdd matchers to assert mechanismBan test class inheritanceBrian's list: Extend assert rewriting for custom rewriting, like checkpytester matchers available for all testsThrow out nose and unittest compatibility pluginsThrow out setup_module, teardown_module and other xunit style functionsRemove a bunch of the hook functionsDocumentation improvement of remaining hook functions which include examples of how to use itStart running tests before collection is doneSplit collection and running into two processesHave the fixtures be able to know the result of the test during teardownLinks:anthonywritescode - YouTubeanthonywritescode - Twitchpytest-asyncio · PyPIasync test patterns for pytestfuture-fstrings · PyPIre-assert · PyPInumpy.testingSourcegraph
undefined
Aug 30, 2022 • 43min

193: The Good Research Code Handbook - Patrick Mineault

I don't think it's too much of a stretch to say that software is part of most scientific research now. From astronomy, to neuroscience, to chemistry, to climate models.  If you work in research that hasn't been affected by software yet, just wait.But how good is that software? How much of common best practices in software development are making it to those writing software in the sciences?Patrick Mineault has written "The Good Research Code Handbook".  It's a website. It's concise.  And it will put you on the right path to writing better software. Even if you don't write science based software, and even if you already have a CS degree, there's some good information worth reading.Special Guest: Patrick Mineault.Links:The Good Research Code Handbookgame-wrath-jam: A game jam game, theme: WrathRobotron 2084 - Arcade - YouTubeThe Book of Why: The New Science of Cause and Effect
undefined
Aug 6, 2022 • 42min

192: Learn to code through game development with PursuedPyBear - Piper Thunstrom

The first game I remember coding, or at least copying from a magazine, was in Basic. It was Lunar Lander. Learning to code a game is a way that a lot of people get started and excited about programming. Of course, I don't recommend Basic. Now we've got Python. And one of the game engines available for Python is PursuedPyBear, a project started by Piper Thunstrom. Piper joins us this episode and we talk about PursuedPyBear, learning to code, and learning CS concepts with game development. PursuedPyBear, ppb, is a game framework great for learning with, with goals of being fun, education friendly, an example of idiomatic Python, hardware library agnostic, and built on event driven and object oriented concepts.Special Guest: Piper Thunstrom.Links:PursuedPyBear | Unbearably Fun Game DevelopmentPiper's BlogMaking Games With PPB - PyTexasShooter Game by Piper Thunstromshootergame on GitHubBriefcase— BeeWaregame-blink: A tiny emergent behavior toy.Combat (Atari 2600) — The tank game I didn't remember the name of.Lunar Lander
undefined
Jul 1, 2022 • 46min

191: Running your own site for fun and absolutely no profit whatsoever - Brian Wisti

Having a personal site is a great playground for learning tons of skills. Brian Wisti discusses the benefits of running a his own blog over the years.Links:Random GeekeryJamstackEleventyNetlifyPlausible AnalyticspytestBeautiful Souppyinvoke - Invoke!rsyncInternet Archive : archive.orgRichStatamicjamstack.orgA static site generator should be your next language learning project
undefined
Jun 21, 2022 • 51min

190: Testing PyPy - Carl Friedrich Bolz-Tereick

PyPy is a fast, compliant alternative implementation of Python. cPython is implemented in C. PyPy is implemented in Python. What does that mean? And how do you test something as huge as an alternative implementation of Python?Special Guest: Carl Friedrich Bolz-Tereick.Links:PyPyHow is PyPy Tested? PyPy SpeedPython Speed Center
undefined
Jun 7, 2022 • 32min

189: attrs and dataclasses - Hynek Schlawack

In Python, before dataclasses, we had attrs. Before attrs, it wasn't pretty.The story of attrs and dataclasses is actually intertwined.  They've built on each other. And in the middle of it all, Hynek.Hynek joins the show today to discuss some history of attrs and dataclasses, and some differences.If you ever need to create a custom class in Python, you should listen to this episode.Links:attrs documentationHistory of attrs and introduction to attrs namespacecattrs: Complex custom class converters for attrs. — python-attrsPEP 557 – Data ClassesPEP 681 – Data Class Transforms
undefined
May 17, 2022 • 36min

188: Python's Rich, Textual, and Textualize - Innovating the CLI

Will McGugan has brought a lot of color to CLIs within Python due to Rich.  Then Textual started rethinking full command line applications, including layout with CSS. And now Textualize, a new startup, is bringing CLI apps to the web.Links:richrich-clitextualTextualize.ioRich GalleryTextualize GalleryPython Bytes Podcast

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app