2min chapter

Test & Code cover image

221: How to get pytest to import your code under test

Test & Code

CHAPTER

Introduction

Exploring the significance of setting up code for testing purposes, focusing on proper import capabilities and the need for tests to import the code under test or its API. Discussing importing scenarios for single files, modules, directories, and installable packages, along with the structure of test and source code directories for effective testing practices.

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode