Skip to content

Commit

Permalink
Merge branch 'snapshot-dir-config' of github.com:pawamoy/inline-snaps…
Browse files Browse the repository at this point in the history
…hot into snapshot-dir-config
  • Loading branch information
pawamoy committed Dec 20, 2024
2 parents ea89a3e + 0be2ca8 commit 759903b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/inline_snapshot/pytest_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ def pytest_configure(config):

_inline_snapshot._update_flags = _inline_snapshot.Flags(flags & categories)

snapshot_path = _config.config.snapshot_dir or config.rootpath / ".inline-snapshot/external"
snapshot_path = (
_config.config.snapshot_dir or config.rootpath / ".inline-snapshot/external"
)

_external.storage = _external.DiscStorage(snapshot_path)

Expand Down

0 comments on commit 759903b

Please sign in to comment.