mock python pytest code example Example: python run pytest Just type this in shell: pytest Or this if that does nott work: python -m pytest