Skip to content

Commit

Permalink
fix: initial snapshot cleanup which used to mistakenly remove files w…
Browse files Browse the repository at this point in the history
…ith store:... filenames now removes files with store-... filenames
  • Loading branch information
sassanh committed Mar 23, 2024
1 parent e82a681 commit 855ab60
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## Version 0.13.2

- fix: initial snapshot cleanup which used to mistakenly remove files with store:...
filenames now removes files with store-... filenames

## Version 0.13.1

- chore: changed the format of snapshot filenames from store:... to store-...
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "python-redux"
version = "0.13.1"
version = "0.13.2"
description = "Redux implementation for Python"
authors = ["Sassan Haradji <sassanh@gmail.com>"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion redux_pytest/fixtures/snapshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def __init__(
self.results_dir = path.parent / 'results' / file / test_id.split('::')[-1][5:]
if self.results_dir.exists():
for file in self.results_dir.glob(
'store:*' if override else 'store:*.mismatch.json',
'store-*' if override else 'store-*.mismatch.json',
):
file.unlink() # pragma: no cover
self.results_dir.mkdir(parents=True, exist_ok=True)
Expand Down

0 comments on commit 855ab60

Please sign in to comment.