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

-1
View File
@@ -317,7 +317,6 @@ max-complexity = 20
"test/solidlsp/bsl/**" = ["RUF001", "RUF002", "RUF003"]
[tool.pytest.ini_options]
addopts = "--snapshot-patch-pycharm-diff"
markers = [
"clojure: language server running for Clojure",
"crystal: language server running for Crystal",
+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."""