mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-11 03:13:51 +00:00
fix: scope Syrupy diff patch to PyCharm
This commit is contained in:
1 parent
e03094f5bc
commit
0498de4a52
2 files changed
+5
-1
No files matched your search
@@ -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",
|
||||
|
||||
@@ -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."""
|
||||
|
||||
Reference in new issue
Block a user