Pytest plugin to reverse test order.
conda install conda-forge::pytest-reverse
Pytest will automatically find the plugin and use it when you run pytest. You can reverse test order by passing the --reverse flag.