Test and Code

Brian Okken

Python's test focused podcast is more than just pytest, testing, and TDD.

  • 49 minutes
    219: Building Django Apps & SaaS Pegasus - Cory Zue

    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 applications
    • SaaS Pegasus
    • placecard.me
    • What boilerplate projects are
    • Django cookiecutter
    • Cookiecutter
    • Which database to use, probably PostgreSQL
    • Authentication choises, probably Allauth
    • Docker, Docker for development, Docker for deployment
    • Deployment targets / hosting services. Render, Heroku, Fly.io, for PaaS options.
    • Front end frameworks. Bootstrap, Tailwind, DaisyUI, TailwindUI
    • HTMX vs React vs straight Django templates
    • Rockets
    • Font Awesome
    • and of course, SaaS Pegasus

    Sponsored by Mailtrap.io

    • An Email Delivery Platform that developers love. 
    • An email-sending solution with industry-best analytics, SMTP, and email API, SDKs for major programming languages, and 24/7 human support. 
    • Try for Free at MAILTRAP.IO

    Sponsored by PyCharm Pro

    The Complete pytest Course

    • For the fastest way to learn pytest, go to courses.pythontest.com
    • Whether your new to testing or pytest, or just want to maximize your efficiency and effectiveness when testing.
    24 April 2024, 12:52 am
  • 28 minutes 48 seconds
    218: Balancing test coverage with test costs - Nicole Tietz-Sokolskaya

    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 testing
    • How much testing is the right about of testing
    • Should code coverage be measured and tracked
    • Good refactoring can reduce code coverage
    • Is it worth testing error conditions?
    • Are rare error codes ok to just monitor?
    • API drift and autospec
    • Mitigating risk
    • Deciding what to test and what not to test
    • Focus testing on key money-making features 
    • If there's a bug in this part of the code, how much business impact is there?
    • Performance testing needs to approximately match real world workloads
    • Cost of a service breaking vs the cost of creating, maintaining, and running tests
    • Keeping test suites quick to minimize getting distracted


    Links:


    Sponsored by Mailtrap.io

    • An Email Delivery Platform that developers love. 
    • An email-sending solution with industry-best analytics, SMTP, and email API, SDKs for major programming languages, and 24/7 human support. 
    • Try for Free at MAILTRAP.IO

    Sponsored by PyCharm Pro

    The Complete pytest Course

    • For the fastest way to learn pytest, go to courses.pythontest.com
    • Whether your new to testing or pytest, or just want to maximize your efficiency and effectiveness when testing.
    18 April 2024, 4:26 am
  • 57 minutes 13 seconds
    217: Podcasting / SaaS / Work Life Balance - Justin Jackson

    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:

    • Podcasting
    • Building new SaaS (software as a service) products
    • Balancing work, side hustle, and family
    • Great places to snowboard in British Columbia

    BTW. This episode was recorded last summer before I switched to transistor.fm.
    I'm now on Transistor for most of a year now, and I love it.

    Links from the show:


    Sponsored by Mailtrap.io

    • An Email Delivery Platform that developers love. 
    • An email-sending solution with industry-best analytics, SMTP, and email API, SDKs for major programming languages, and 24/7 human support. 
    • Try for Free at MAILTRAP.IO

    Sponsored by PyCharm Pro

    The Complete pytest Course

    • For the fastest way to learn pytest, go to courses.pythontest.com
    • Whether your new to testing or pytest, or just want to maximize your efficiency and effectiveness when testing.
    11 April 2024, 7:36 am
  • 48 minutes 44 seconds
    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 virtualenv
    • Astral 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:


    Sponsored by PyCharm Pro

    The Complete pytest Course

    • For the fastest way to learn pytest, go to courses.pythontest.com
    • Whether your new to testing or pytest, or just want to maximize your efficiency and effectiveness when testing.
    11 March 2024, 8:12 pm
  • 40 minutes 49 seconds
    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

    The Complete pytest Course

    • For the fastest way to learn pytest, go to courses.pythontest.com
    • Whether your new to testing or pytest, or just want to maximize your efficiency and effectiveness when testing.
    25 February 2024, 4:38 pm
  • 38 minutes 49 seconds
    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:


    The Complete pytest Course

    7 February 2024, 5:20 am
  • 15 minutes 1 second
    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:

    We talk about each of these in this episode.


    Sponsored by PyCharm Pro

    The Complete pytest Course

    • For the fastest way to learn pytest, go to courses.pythontest.com
    • Whether your new to testing or pytest, or just want to maximize your efficiency and effectiveness when testing.
    19 January 2024, 10:09 pm
  • 7 minutes 54 seconds
    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:


    The Complete pytest Course

    13 January 2024, 7:18 pm
  • 19 minutes 57 seconds
    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 dependence
    • Testing for dependencies using plugins
    • Debugging test dependencies

    Plugins discussed:

    • pytest-randomly
    • pytest-reverse
    • pytest-random-order



    Sponsored by PyCharm Pro

    The Complete pytest Course

    • For the fastest way to learn pytest, go to courses.pythontest.com
    • Whether your new to testing or pytest, or just want to maximize your efficiency and effectiveness when testing.


    15 December 2023, 11:17 pm
  • 17 minutes 40 seconds
    210: TDD - Refactor while green

    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

    The Complete pytest Course

    • For the fastest way to learn pytest, go to courses.pythontest.com
    • Whether your new to testing or pytest, or just want to maximize your efficiency and effectiveness when testing.


    30 November 2023, 12:29 am
  • 16 minutes 17 seconds
    209: Testing argparse Applications

    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:


    The Complete pytest Course

    16 November 2023, 8:07 pm
  • More Episodes? Get the App
© MoonFM 2024. All rights reserved.