Option 1: @pytest.mark.XXX Option 2: use folders (tests/unit, tests/integration) https://stackoverflow.com/a/52246323 Pros: - No need to mark each test -