Debugging other people's code, the diary.

So I made code change to this open source project, but don't know how to write the test.

Surely there's already an existing test that touched this code?
Where are those tests?

I know, just use the measurement context from coverage py. Popular open source project like this, surely they use coverage, right?

Looks at codebase.
No coverage.py dependency.

😐

ok... just add 1/0 here then and see which tests break.

3 new failed tests.

Aah, there you are.

0

If you have a fediverse account, you can quote this note from your own instance. Search https://fosstodon.org/users/mariatta/statuses/114237119634964660 on your instance and quote it. (Note that quoting is not supported in Mastodon.)