Skip to content

Commit e82a681

Browse files
committed
chore: changed the format of snapshot filenames from store:... to store-...
1 parent 4b02d18 commit e82a681

File tree

100 files changed

+158
-154
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+158
-154
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions

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.0"
3+
version = "0.13.1"
44
description = "Redux implementation for Python"
55
authors = ["Sassan Haradji <[email protected]>"]
66
license = "Apache-2.0"

redux_pytest/fixtures/snapshot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ def json_snapshot(self: StoreSnapshot) -> str:
5959
def get_filename(self: StoreSnapshot, title: str | None) -> str:
6060
"""Get the filename for the snapshot."""
6161
if title:
62-
return f"""store:{title}-{self.test_counter[title]:03d}"""
63-
return f"""store:{self.test_counter[title]:03d}"""
62+
return f"""store-{title}-{self.test_counter[title]:03d}"""
63+
return f"""store-{self.test_counter[title]:03d}"""
6464

6565
def take(self: StoreSnapshot, *, title: str | None = None) -> None:
6666
"""Take a snapshot of the current window."""
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// store:000
1+
// store-000
22
{
33
"value": 0
44
}
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// store:001
1+
// store-001
22
{
33
"value": 1
44
}
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// store:002
1+
// store-002
22
{
33
"value": 3
44
}
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// store:003
1+
// store-003
22
{
33
"value": 4
44
}
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// store:000
1+
// store-000
22
{
33
"value": 0
44
}
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// store:001
1+
// store-001
22
{
33
"value": 1
44
}
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// store:002
1+
// store-002
22
{
33
"value": 3
44
}

0 commit comments

Comments
 (0)