How to run one specific pytest test from the command line27 June 2026·2 minsSix ways to narrow pytest to a single test - by file, class, method, parametrisation, keyword, or last-failed.