mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 16:42:42 +01:00
12 lines
347 B
Python
12 lines
347 B
Python
import os
|
|
|
|
import pytest
|
|
|
|
|
|
def pytest_runtest_setup(item: pytest.Item):
|
|
"""Skip integration tests if INTEGRATION_TEST environment variable is not set."""
|
|
if os.environ.get("INTEGRATION_TEST"):
|
|
return
|
|
|
|
if next(item.iter_markers(name="integration_test"), None):
|
|
pytest.skip(f"INTEGRATION_TEST=1 required: {item.nodeid}")
|