Skip to content

Commit

Permalink
chore: changed the format of snapshot filenames from store:... to sto…
Browse files Browse the repository at this point in the history
…re-...
  • Loading branch information
sassanh committed Mar 23, 2024
1 parent 4b02d18 commit e82a681
Show file tree
Hide file tree
Showing 100 changed files with 158 additions and 154 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## Version 0.13.1

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

## Version 0.13.0

- chore(test): move fixtures and testing utilities to `redux-pytest` package
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.0"
version = "0.13.1"
description = "Redux implementation for Python"
authors = ["Sassan Haradji <[email protected]>"]
license = "Apache-2.0"
Expand Down
4 changes: 2 additions & 2 deletions redux_pytest/fixtures/snapshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ def json_snapshot(self: StoreSnapshot) -> str:
def get_filename(self: StoreSnapshot, title: str | None) -> str:
"""Get the filename for the snapshot."""
if title:
return f"""store:{title}-{self.test_counter[title]:03d}"""
return f"""store:{self.test_counter[title]:03d}"""
return f"""store-{title}-{self.test_counter[title]:03d}"""
return f"""store-{self.test_counter[title]:03d}"""

def take(self: StoreSnapshot, *, title: str | None = None) -> None:
"""Take a snapshot of the current window."""
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// store:000
// store-000
{
"value": 0
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// store:001
// store-001
{
"value": 1
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// store:002
// store-002
{
"value": 3
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// store:003
// store-003
{
"value": 4
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// store:000
// store-000
{
"value": 0
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// store:001
// store-001
{
"value": 1
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// store:002
// store-002
{
"value": 3
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// store:003
// store-003
{
"value": 4
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// store:000
// store-000
{
"value": 0
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// store:001
// store-001
{
"value": 1
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// store:002
// store-002
{
"value": 3
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// store:003
// store-003
{
"value": 4
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// store:000
// store-000
{
"value": 0
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// store:001
// store-001
{
"value": 1
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// store:002
// store-002
{
"value": 3
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// store:003
// store-003
{
"value": 4
}
4 changes: 4 additions & 0 deletions tests/results/test_autorun/with_comparator/store-000.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// store-000
{
"value": 0
}
4 changes: 4 additions & 0 deletions tests/results/test_autorun/with_comparator/store-001.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// store-001
{
"value": 1
}
4 changes: 4 additions & 0 deletions tests/results/test_autorun/with_comparator/store-002.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// store-002
{
"value": 4
}
4 changes: 0 additions & 4 deletions tests/results/test_autorun/with_comparator/store:000.jsonc

This file was deleted.

4 changes: 0 additions & 4 deletions tests/results/test_autorun/with_comparator/store:001.jsonc

This file was deleted.

4 changes: 0 additions & 4 deletions tests/results/test_autorun/with_comparator/store:002.jsonc

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// store-000
{
"value": 0
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// store-001
{
"value": 1
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// store-002
{
"value": 4
}

This file was deleted.

This file was deleted.

This file was deleted.

4 changes: 4 additions & 0 deletions tests/results/test_autorun/with_old_value/store-000.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// store-000
{
"value": 0
}
4 changes: 4 additions & 0 deletions tests/results/test_autorun/with_old_value/store-001.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// store-001
{
"value": 1
}
4 changes: 4 additions & 0 deletions tests/results/test_autorun/with_old_value/store-002.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// store-002
{
"value": 3
}
4 changes: 4 additions & 0 deletions tests/results/test_autorun/with_old_value/store-003.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// store-003
{
"value": 4
}
4 changes: 0 additions & 4 deletions tests/results/test_autorun/with_old_value/store:000.jsonc

This file was deleted.

4 changes: 0 additions & 4 deletions tests/results/test_autorun/with_old_value/store:001.jsonc

This file was deleted.

4 changes: 0 additions & 4 deletions tests/results/test_autorun/with_old_value/store:002.jsonc

This file was deleted.

4 changes: 0 additions & 4 deletions tests/results/test_autorun/with_old_value/store:003.jsonc

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// store:000
// store-000
{
"_id": "e3e70682c2094cac629f6fbed82c07cd",
"base10": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// store:001
// store-001
{
"_id": "e3e70682c2094cac629f6fbed82c07cd",
"base10": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// store:002
// store-002
{
"_id": "e3e70682c2094cac629f6fbed82c07cd",
"base10": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// store:003
// store-003
{
"_id": "e3e70682c2094cac629f6fbed82c07cd",
"base10": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// store:004
// store-004
{
"_id": "e3e70682c2094cac629f6fbed82c07cd",
"base10": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// store:005
// store-005
{
"_id": "e3e70682c2094cac629f6fbed82c07cd",
"base10": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// store:autorun-000
// store-autorun-000
{
"_id": "e3e70682c2094cac629f6fbed82c07cd",
"base10": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// store:autorun-001
// store-autorun-001
{
"_id": "e3e70682c2094cac629f6fbed82c07cd",
"base10": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// store:autorun-002
// store-autorun-002
{
"_id": "e3e70682c2094cac629f6fbed82c07cd",
"base10": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// store:autorun-003
// store-autorun-003
{
"_id": "e3e70682c2094cac629f6fbed82c07cd",
"base10": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// store:autorun-004
// store-autorun-004
{
"_id": "e3e70682c2094cac629f6fbed82c07cd",
"base10": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// store:autorun_subscription-000
// store-autorun_subscription-000
{
"_id": "e3e70682c2094cac629f6fbed82c07cd",
"base10": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// store:autorun_subscription-001
// store-autorun_subscription-001
{
"_id": "e3e70682c2094cac629f6fbed82c07cd",
"base10": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// store:autorun_subscription-002
// store-autorun_subscription-002
{
"_id": "e3e70682c2094cac629f6fbed82c07cd",
"base10": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// store:autorun_subscription-003
// store-autorun_subscription-003
{
"_id": "e3e70682c2094cac629f6fbed82c07cd",
"base10": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// store:autorun_subscription-004
// store-autorun_subscription-004
{
"_id": "e3e70682c2094cac629f6fbed82c07cd",
"base10": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// store-initialization-000

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// store:subscription-000
// store-subscription-000
{
"_id": "e3e70682c2094cac629f6fbed82c07cd",
"base10": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// store:subscription-001
// store-subscription-001
{
"_id": "e3e70682c2094cac629f6fbed82c07cd",
"base10": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// store:subscription-002
// store-subscription-002
{
"_id": "e3e70682c2094cac629f6fbed82c07cd",
"base10": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// store:subscription-003
// store-subscription-003
{
"_id": "e3e70682c2094cac629f6fbed82c07cd",
"base10": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// store:subscription-004
// store-subscription-004
{
"_id": "e3e70682c2094cac629f6fbed82c07cd",
"base10": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// store:subscription-006
// store-subscription-005
{
"_id": "e3e70682c2094cac629f6fbed82c07cd",
"base10": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// store:subscription-005
// store-subscription-006
{
"_id": "e3e70682c2094cac629f6fbed82c07cd",
"base10": {
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// store:000
// store-000
{
"items": [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// store:001
// store-001
{
"items": [
{
Expand Down
4 changes: 4 additions & 0 deletions tests/results/test_weakref/autorun/store-000.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// store-000
{
"value": 0
}
4 changes: 4 additions & 0 deletions tests/results/test_weakref/autorun/store-001.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// store-001
{
"value": 1
}
4 changes: 0 additions & 4 deletions tests/results/test_weakref/autorun/store:000.jsonc

This file was deleted.

Loading

0 comments on commit e82a681

Please sign in to comment.