Title: Testing a book's code - by Eric Matthes - Mostly Python
Open Graph Title: Testing a book's code
X Title: Testing a book's code
Description: MP 76: Testing code for a book is different than testing a standard programming project, but brings up many relevant issues.
Open Graph Description: MP 76: Testing code for a book is different than testing a standard programming project, but brings up many relevant issues.
X Description: MP 76: Testing code for a book is different than testing a standard programming project, but brings up many relevant issues.
Opengraph URL: https://www.mostlypython.com/testing-a-books-code/
X: @ghost
Generator: Ghost 6.52
Domain: www.mostlypython.com
{
"@context": "https://schema.org",
"@type": "Article",
"publisher": {
"@type": "Organization",
"name": "Mostly Python",
"url": "https://www.mostlypython.com/",
"logo": {
"@type": "ImageObject",
"url": "https://storage.ghost.io/c/b0/88/b088fa59-ac78-44d9-9662-4c7568d7cb9a/content/images/size/w256h256/2024/02/logo_200px.png",
"width": 60,
"height": 60
}
},
"author": {
"@type": "Person",
"name": "Eric Matthes",
"url": "https://www.mostlypython.com/author/eric-matthes/",
"sameAs": []
},
"headline": "Testing a book's code - by Eric Matthes - Mostly Python",
"url": "https://www.mostlypython.com/testing-a-books-code/",
"datePublished": "2024-01-11T17:30:21.000Z",
"dateModified": "2024-03-25T20:22:38.000Z",
"image": {
"@type": "ImageObject",
"url": "https://storage.ghost.io/c/b0/88/b088fa59-ac78-44d9-9662-4c7568d7cb9a/content/images/size/w1200/image/fetch/w_2000,h_2000,c_fill,f_jpg,q_auto:good,fl_progressive:steep,g_auto/https-3a-2f-2fsubstack-post-media.s3.amazonaws.com-2fpublic-2fimages-2fd9f961fd-08f5-4534-a14e-3f5eaa1c153e_2001x1311.jpg",
"width": 1200,
"height": 787
},
"keywords": "Newsletter, testing",
"description": "MP 76: Testing code for a book is different than testing a standard programming project, but brings up many relevant issues.",
"mainEntityOfPage": "https://www.mostlypython.com/testing-a-books-code/"
}
| referrer | no-referrer-when-downgrade |
| og:site_name | Mostly Python |
| og:type | article |
| og:image | https://storage.ghost.io/c/b0/88/b088fa59-ac78-44d9-9662-4c7568d7cb9a/content/images/image/fetch/w_1200,h_600,c_fill,f_jpg,q_auto:good,fl_progressive:steep,g_auto/https-3a-2f-2fsubstack-post-media.s3.amazonaws.com-2fpublic-2fimages-2fd9f961fd-08f5-4534-a14e-3f5eaa1c153e_2001x1311.jpg |
| article:published_time | 2024-01-11T17:30:21.000Z |
| article:modified_time | 2024-03-25T20:22:38.000Z |
| article:tag | testing |
| article:publisher | https://www.facebook.com/ghost |
| twitter:card | summary_large_image |
| twitter:url | https://www.mostlypython.com/testing-a-books-code/ |
| twitter:image | https://storage.ghost.io/c/b0/88/b088fa59-ac78-44d9-9662-4c7568d7cb9a/content/images/size/w1200/image/fetch/f_auto,q_auto:best,fl_progressive:steep/https-3a-2f-2fmostlypython.substack.com-2fapi-2fv1-2fpost_preview-2f140485359-2ftwitter.jpg |
| twitter:label1 | Written by |
| twitter:data1 | Eric Matthes |
| twitter:label2 | Filed under |
| twitter:data2 | Newsletter, testing |
| og:image:width | 1200 |
| og:image:height | 600 |
Links:
| Mostly Python | https://www.mostlypython.com |
| Home | https://www.mostlypython.com/ |
| Topics | https://www.mostlypython.com/topics/ |
| Series | https://www.mostlypython.com/series/ |
| About | https://www.mostlypython.com/about/ |
| Contact | https://www.mostlypython.com/contact/ |
| Just read | https://www.mostlypython.com/just-read/ |
| Sign in | https://www.mostlypython.com/testing-a-books-code#/portal/signin |
| Subscribe | https://www.mostlypython.com/testing-a-books-code#/portal/signup |
| Newsletter | https://www.mostlypython.com/tag/newsletter/ |
| https://www.mostlypython.com/author/eric-matthes/ | |
| Eric Matthes | https://www.mostlypython.com/author/eric-matthes/ |
| series | https://www.mostlypython.com/testing-a-books-code-696 |
| MP #77 | https://www.mostlypython.com/p/testing-a-books-code-part-2-basic |
| earlier post | https://mostlypython.substack.com/p/dont-start-with-unit-tests?ref=mostlypython.com |
| gave a talk | https://www.youtube.com/watch?v=1i5leCslA4g&ref=mostlypython.com |
| partial_programs/ | https://github.com/ehmatthes/pcc_3e/tree/main/chapter_08/partial_programs?ref=mostlypython.com |
| next post | https://www.mostlypython.com/testing-a-books-code-part-2-basic |
| Exploring chess games MP 171: A first foray into the massive Lichess database. I've been getting back into chess since moving to North Carolina, and as part of that journey I've been wanting to analyze games in ways that weren't really possible when I was last playing By Eric Matthes Jul 9, 2026 | https://www.mostlypython.com/exploring-chess-games/ |
| I keep being be impressed by uv MP 170: It understands my old projects! A few years ago I made a small project that automatically adds borders to screenshots, because macOS doesn't have a built-in tool to easily do that. For a couple years I installed it globally on every system I used, so By Eric Matthes Jun 25, 2026 | https://www.mostlypython.com/i-keep-being-be-impressed-by-uv/ |
| An LLM can't go for a walk in the woods MP 169: But we still can, and we should keep doing so. Regular readers of Mostly Python are probably aware that I'm currently working on gh-profiler. It helps open source maintainers make better-informed decisions about how much time to invest with users who open new PRs By Eric Matthes Jun 11, 2026 | https://www.mostlypython.com/an-llm-cant-go-for-a-walk-in-the-woods/ |
| Batching API calls MP 168: An obvious speedup, with a surprising side benefit. I've been working steadily on gh-profiler, while attending PyCon US and working on other projects as well. The project makes a number of calls to GitHub's API, and then analyzes the results to generate some By Eric Matthes May 28, 2026 | https://www.mostlypython.com/batching-api-calls/ |
| Sign up | https://www.mostlypython.com/testing-a-books-code#/portal/ |
| Ghost | https://ghost.org/ |
Viewport: width=device-width, initial-scale=1.0