René's URL Explorer Experiment


Title: Testing a book's code, part 2: Basic scripts

Open Graph Title: Testing a book's code, part 2: Basic scripts

X Title: Testing a book's code, part 2: Basic scripts

Description: MP #77: Using parametrization to efficiently write a large batch of tests.

Open Graph Description: MP #77: Using parametrization to efficiently write a large batch of tests.

X Description: MP #77: Using parametrization to efficiently write a large batch of tests.

Opengraph URL: https://www.mostlypython.com/testing-a-books-code-part-2-basic/

X: @ghost

Generator: Ghost 6.52

direct link

Domain: www.mostlypython.com


Hey, it has json ld scripts:
{
    "@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, part 2: Basic scripts",
    "url": "https://www.mostlypython.com/testing-a-books-code-part-2-basic/",
    "datePublished": "2024-01-18T17:30:10.000Z",
    "dateModified": "2024-03-25T20:25:56.000Z",
    "image": {
        "@type": "ImageObject",
        "url": "https://storage.ghost.io/c/b0/88/b088fa59-ac78-44d9-9662-4c7568d7cb9a/content/images/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-2f619b8e3d-2484-4391-a328-34db1634db8c_1121x710.jpg",
        "width": 1121,
        "height": 710
    },
    "keywords": "Newsletter, testing",
    "description": "MP #77: Using parametrization to efficiently write a large batch of tests.",
    "mainEntityOfPage": "https://www.mostlypython.com/testing-a-books-code-part-2-basic/"
}
    

referrerno-referrer-when-downgrade
og:site_nameMostly Python
og:typearticle
og:imagehttps://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-2f619b8e3d-2484-4391-a328-34db1634db8c_1121x710.jpg
article:published_time2024-01-18T17:30:10.000Z
article:modified_time2024-03-25T20:25:56.000Z
article:tagtesting
article:publisherhttps://www.facebook.com/ghost
twitter:cardsummary_large_image
twitter:urlhttps://www.mostlypython.com/testing-a-books-code-part-2-basic/
twitter:imagehttps://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-2f137400936-2ftwitter.jpg
twitter:label1Written by
twitter:data1Eric Matthes
twitter:label2Filed under
twitter:data2Newsletter, testing
og:image:width1121
og:image:height600

Links:

Mostly Python https://www.mostlypython.com
Homehttps://www.mostlypython.com/
Topicshttps://www.mostlypython.com/topics/
Serieshttps://www.mostlypython.com/series/
Abouthttps://www.mostlypython.com/about/
Contacthttps://www.mostlypython.com/contact/
Just readhttps://www.mostlypython.com/just-read/
Sign inhttps://www.mostlypython.com/testing-a-books-code-part-2-basic#/portal/signin
Subscribehttps://www.mostlypython.com/testing-a-books-code-part-2-basic#/portal/signup
Newsletterhttps://www.mostlypython.com/tag/newsletter/
https://www.mostlypython.com/author/eric-matthes/
Eric Mattheshttps://www.mostlypython.com/author/eric-matthes/
serieshttps://www.mostlypython.com/testing-a-books-code-696
previous posthttps://www.mostlypython.com/testing-a-books-code
this gisthttps://gist.github.com/0xjac/85097472043b697ab57ba1b1c7530274?ref=mostlypython.com
official posthttps://github.blog/2022-04-25-the-friend-zone-friendly-forks-101/?ref=mostlypython.com
new repohttps://github.com/ehmatthes/mp_testing_pcc_3e?ref=mostlypython.com
pcc_3ehttps://github.com/ehmatthes/pcc_3e?ref=mostlypython.com
listinghttps://github.com/ehmatthes/pcc_3e/tree/main/chapter_04?ref=mostlypython.com
1https://www.mostlypython.com/testing-a-books-code-part-2-basic#footnote-1
pytesthttps://docs.pytest.org/en/7.4.x/?ref=mostlypython.com
first testhttps://github.com/ehmatthes/mp_testing_pcc_3e/blob/9ef02c1a63e5ed99008aee6b083528a65b4ccebf/tests/test_basic_programs.py?ref=mostlypython.com
2https://www.mostlypython.com/testing-a-books-code-part-2-basic#footnote-2
addinghttps://github.com/ehmatthes/mp_testing_pcc_3e/blob/a113ceec230d218c2ee400234b7b04f0e4c82816/tests/test_basic_programs.py?ref=mostlypython.com
tests for allhttps://github.com/ehmatthes/mp_testing_pcc_3e/blob/eb46de9fbef8de9ddf623eafc3274bf0c6ac5a95/tests/test_basic_programs.py?ref=mostlypython.com
3https://www.mostlypython.com/testing-a-books-code-part-2-basic#footnote-3
nowhttps://github.com/ehmatthes/mp_testing_pcc_3e/blob/main/tests/test_basic_programs.py?ref=mostlypython.com
changeshttps://github.com/ehmatthes/mp_testing_pcc_3e/blob/00df1d322690c9963ee8288d35c3acfeceb1bd28/tests/test_basic_programs.py?ref=mostlypython.com
pathlibhttps://docs.python.org/3/library/pathlib.html?ref=mostlypython.com
these changeshttps://github.com/ehmatthes/demo_testing_pcc_3e/tree/4e99c15084c0a18cc483b3ad1ca3e6432218c50f/tests?ref=mostlypython.com
this pointhttps://github.com/ehmatthes/mp_testing_pcc_3e/blob/4264c85fba688efc094e8923ed901541d64affd1/tests/test_basic_programs.py?ref=mostlypython.com
next posthttps://www.mostlypython.com/testing-a-books-code-part-3-testing
mp_testing_pcc_3ehttps://github.com/ehmatthes/mp_testing_pcc_3e?ref=mostlypython.com
https://www.mostlypython.com/testing-a-books-code-part-2-basic#footnote-anchor-1
Walking the Linehttps://www.youtube.com/watch?v=APVNZfeOCI4&ref=mostlypython.com
https://www.mostlypython.com/testing-a-books-code-part-2-basic#footnote-anchor-2
https://www.mostlypython.com/testing-a-books-code-part-2-basic#footnote-anchor-3
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 uphttps://www.mostlypython.com/testing-a-books-code-part-2-basic#/portal/
Ghosthttps://ghost.org/

Viewport: width=device-width, initial-scale=1.0


URLs of crawlers that visited me.