I'm adding pytest unit tests to my todo-linter. They're a simple port of the run...

@Taffer@mastodon.gamedev.place

I'm adding pytest unit tests to my todo-linter. They're a simple port of the run-tests.sh script in the root, easy: worktree.ca/taffer/todo-linter

If I run the tests in there individually, they each work. If I run then entire file, the first works and the rest fail.

This was the most obvious way (to me) to write the tests; what pytest state detail am I missing and need to reset? I am confuse.

#python #pytest