Skip to content

Commit 855ab60

Browse files
committed
fix: initial snapshot cleanup which used to mistakenly remove files with store:... filenames now removes files with store-... filenames
1 parent e82a681 commit 855ab60

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## Version 0.13.2
4+
5+
- fix: initial snapshot cleanup which used to mistakenly remove files with store:...
6+
filenames now removes files with store-... filenames
7+
38
## Version 0.13.1
49

510
- chore: changed the format of snapshot filenames from store:... to store-...

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "python-redux"
3-
version = "0.13.1"
3+
version = "0.13.2"
44
description = "Redux implementation for Python"
55
authors = ["Sassan Haradji <[email protected]>"]
66
license = "Apache-2.0"

redux_pytest/fixtures/snapshot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def __init__(
3939
self.results_dir = path.parent / 'results' / file / test_id.split('::')[-1][5:]
4040
if self.results_dir.exists():
4141
for file in self.results_dir.glob(
42-
'store:*' if override else 'store:*.mismatch.json',
42+
'store-*' if override else 'store-*.mismatch.json',
4343
):
4444
file.unlink() # pragma: no cover
4545
self.results_dir.mkdir(parents=True, exist_ok=True)

0 commit comments

Comments
 (0)