Skip to content

Commit 647f22e

Browse files
authored
test: replace syrupy with inline-snapshot (#4246)
1 parent b75dc6f commit 647f22e

File tree

7 files changed

+253
-320
lines changed

7 files changed

+253
-320
lines changed

pixi.lock

Lines changed: 0 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pixi.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ pytest-timeout = ">=2.3.1,<3"
5353
pytest-xdist = ">=3.6.1,<4"
5454
pyyaml = ">=6.0.2,<7"
5555
rich = ">=14,<15"
56-
syrupy = ">=4.8.0,<5"
5756
tomli-w = ">=1.0,<2"
5857
types-pyyaml = ">=6.0.12.20241230,<7"
5958

@@ -96,7 +95,6 @@ tbump = ">=6.9.0,<6.10"
9695

9796
[feature.dev.tasks]
9897
insta-review = "cargo insta review --workspace"
99-
syrupy-update = "pytest --snapshot-update"
10098
update-rattler = "cargo upgrade -p rattler -p file_url -p rattler_cache -p rattler_conda_types -p rattler_digest -p rattler_lock -p rattler_networking -p rattler_repodata_gateway -p rattler_shell -p rattler_solve -p rattler_virtual_packages"
10199

102100
# UV dependency management
@@ -117,6 +115,10 @@ description = "Switch to local rattler development dependencies"
117115
cmd = "python scripts/local_patch.py rattler remote"
118116
description = "Switch back to remote rattler dependencies"
119117

118+
[feature.dev.tasks.snapshot-update]
119+
args = [{ "arg" = "expression", "default" = "" }]
120+
cmd = "pytest --inline-snapshot=fix -k '{{ expression }}'"
121+
120122
[feature.lint.dependencies]
121123
actionlint = ">=1.7.7,<2"
122124
dprint = ">=0.49.1,<0.51"

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# there is no Python project,
2+
# this file is just for configuring tools used in Python tests
3+
4+
[tool.inline-snapshot]
5+
format-command = "pixi run -e lint ruff format --stdin-filename {filename}"

tests/integration_python/__snapshots__/test_docs_examples.ambr

Lines changed: 0 additions & 86 deletions
This file was deleted.

tests/integration_python/__snapshots__/test_main_cli.ambr

Lines changed: 0 additions & 142 deletions
This file was deleted.

0 commit comments

Comments
 (0)