How to run one specific pytest test from the command line
·2 mins
Six ways to narrow pytest to a single test - by file, class, method, parametrisation, keyword, or last-failed.
Short technical notes, quick tips, and things I’ve learned along the way. These are bite-sized learnings that don’t warrant a full blog post but are worth remembering and sharing. Sometimes it’s just a single Linux command I want to remember for next time.
diff gives you noise. jq -S, dyff, and jd give you the actual semantic difference.kubectl patch to stop a CronJob from firing without deleting it - and how to resume it later.git push --force using the reflog - and how to never need to again.