Skip to content

Commit

Permalink
fix conftest.py after merging
Browse files Browse the repository at this point in the history
  • Loading branch information
a-mosquito committed Jun 26, 2024
1 parent 421af25 commit 1eec541
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,18 @@ def snapshot(request):


def pytest_addoption(parser):
group = parser.getgroup("snapshottest")
group = parser.getgroup("tpcp_snapshots")
group.addoption(
"--snapshot-update",
action="store_true",
default=False,
dest="snapshot_update",
help="Update the snapshots.",
)
group.addoption(
"--snapshot-only-check",
action="store_true",
default=False,
dest="snapshot_only_check",
help="Run as normal, but fail if a snapshot file is not found. This is usefull for CI runs.",
)

0 comments on commit 1eec541

Please sign in to comment.