Skip tests based on a condition in pytest
Pytest tip:
You can skip a test based on a given condition.
For example, you can skip a test when running on Windows
import sys import pytest @pytest.mark.skipif(sys.platform == "win32", reason="Not running on Window") def test_windows(): assert True