fix: scope Syrupy diff patch to PyCharm

This commit is contained in:
Tyce Herrman authored and Dr. Dominik Jain committed 2026-08-05 11:46:54 +02:00
1 parent e03094f5bc
commit 0498de4a52
2 files changed
+5 -1

No files matched your search

+5
View File
@@ -32,6 +32,11 @@ logging.configure(level=PYTEST_LOG_LEVEL)
log = logging.getLogger(__name__)
def pytest_configure(config: pytest.Config) -> None:
if os.getenv("PYCHARM_HOSTED") == "1":
config.option.patch_pycharm_diff = True
@pytest.fixture(scope="session")
def resources_dir() -> Path:
"""Path to the test resources directory."""