From 3708af6ac18240c9cbaa94e6aa6ca14250e81685 Mon Sep 17 00:00:00 2001 From: Sassan Haradji Date: Tue, 3 Sep 2024 20:41:51 +0400 Subject: [PATCH] feat(core): add `_type` field to the serialized immutable instances --- CHANGELOG.md | 4 + poetry.lock | 172 ++++++++++-------- pyproject.toml | 6 +- redux/serialization_mixin.py | 2 +- redux_pytest/fixtures/event_loop.py | 2 +- redux_pytest/fixtures/monitor.py | 2 +- redux_pytest/fixtures/snapshot.py | 4 +- redux_pytest/fixtures/store.py | 6 +- redux_pytest/fixtures/wait_for.py | 2 +- .../test_autorun/callability/store-000.jsonc | 1 + .../test_autorun/callability/store-001.jsonc | 1 + .../test_autorun/callability/store-002.jsonc | 1 + .../test_autorun/callability/store-003.jsonc | 1 + .../test_autorun/general/store-000.jsonc | 1 + .../test_autorun/general/store-001.jsonc | 1 + .../test_autorun/general/store-002.jsonc | 1 + .../test_autorun/general/store-003.jsonc | 1 + .../test_autorun/subscription/store-000.jsonc | 1 + .../test_autorun/subscription/store-001.jsonc | 1 + .../test_autorun/subscription/store-002.jsonc | 1 + .../test_autorun/subscription/store-003.jsonc | 1 + .../value_property/store-000.jsonc | 1 + .../value_property/store-001.jsonc | 1 + .../value_property/store-002.jsonc | 1 + .../value_property/store-003.jsonc | 1 + .../with_comparator/store-000.jsonc | 1 + .../with_comparator/store-001.jsonc | 1 + .../with_comparator/store-002.jsonc | 1 + .../test_features/general/store-000.jsonc | 3 + .../test_features/general/store-001.jsonc | 3 + .../test_features/general/store-002.jsonc | 4 + .../test_features/general/store-003.jsonc | 3 + .../test_features/general/store-004.jsonc | 3 + .../test_features/general/store-005.jsonc | 3 + .../general/store-autorun-000.jsonc | 3 + .../general/store-autorun-001.jsonc | 3 + .../general/store-autorun-002.jsonc | 4 + .../general/store-autorun-003.jsonc | 3 + .../general/store-autorun-004.jsonc | 3 + .../store-autorun_subscription-000.jsonc | 3 + .../store-autorun_subscription-001.jsonc | 3 + .../store-autorun_subscription-002.jsonc | 4 + .../store-autorun_subscription-003.jsonc | 3 + .../store-autorun_subscription-004.jsonc | 3 + .../general/store-subscription-000.jsonc | 3 + .../general/store-subscription-001.jsonc | 4 + .../general/store-subscription-002.jsonc | 4 + .../general/store-subscription-003.jsonc | 4 + .../general/store-subscription-004.jsonc | 3 + .../general/store-subscription-005.jsonc | 3 + .../general/store-subscription-006.jsonc | 3 + .../general/store-subscription-007.jsonc | 3 + tests/results/test_todo/todo/store-000.jsonc | 2 + tests/results/test_todo/todo/store-001.jsonc | 3 + .../test_weakref/autorun/store-000.jsonc | 1 + .../test_weakref/autorun/store-001.jsonc | 1 + ...ore-autorun_method_with_keep_ref-000.jsonc | 1 + ...ore-autorun_method_with_keep_ref-001.jsonc | 1 + .../store-000.jsonc | 1 + .../store-001.jsonc | 1 + ...ore-autorun_method_with_keep_ref-000.jsonc | 1 + ...ore-autorun_method_with_keep_ref-001.jsonc | 1 + .../autorun_subscription/store-000.jsonc | 1 + .../autorun_subscription/store-001.jsonc | 1 + .../store-autorun_subscription-000.jsonc | 1 + .../store-autorun_subscription-001.jsonc | 1 + ...ubscription_method_with_keep_ref-000.jsonc | 1 + .../test_weakref/subscription/store-000.jsonc | 1 + .../test_weakref/subscription/store-001.jsonc | 1 + ...ubscription_method_with_keep_ref-000.jsonc | 1 + ...ubscription_method_with_keep_ref-001.jsonc | 1 + tests/test_async.py | 2 +- tests/test_autorun.py | 2 +- tests/test_features.py | 4 +- tests/test_middleware.py | 2 +- tests/test_monitor_fixtures.py | 4 +- tests/test_performance.py | 2 +- tests/test_serialization.py | 1 + tests/test_snapshot.py | 4 +- tests/test_snapshot_fixture.py | 2 +- tests/test_todo.py | 2 +- tests/test_views.py | 2 +- tests/test_weakref.py | 2 +- 83 files changed, 247 insertions(+), 101 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8105672..4073c37 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## Version 0.16.1 + +- feat(core): add `_type` field to the serialized immutable instances + ## Version 0.16.0 - feat(core): add blocking `wait_for_event_handlers` method to `Store` to wait for all event handlers to finish diff --git a/poetry.lock b/poetry.lock index 55625cf..6eebcd9 100644 --- a/poetry.lock +++ b/poetry.lock @@ -13,63 +13,83 @@ files = [ [[package]] name = "coverage" -version = "7.6.0" +version = "7.6.1" description = "Code coverage measurement for Python" optional = false python-versions = ">=3.8" files = [ - {file = "coverage-7.6.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:dff044f661f59dace805eedb4a7404c573b6ff0cdba4a524141bc63d7be5c7fd"}, - {file = "coverage-7.6.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:a8659fd33ee9e6ca03950cfdcdf271d645cf681609153f218826dd9805ab585c"}, - {file = "coverage-7.6.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7792f0ab20df8071d669d929c75c97fecfa6bcab82c10ee4adb91c7a54055463"}, - {file = "coverage-7.6.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d4b3cd1ca7cd73d229487fa5caca9e4bc1f0bca96526b922d61053ea751fe791"}, - {file = "coverage-7.6.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e7e128f85c0b419907d1f38e616c4f1e9f1d1b37a7949f44df9a73d5da5cd53c"}, - {file = "coverage-7.6.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:a94925102c89247530ae1dab7dc02c690942566f22e189cbd53579b0693c0783"}, - {file = "coverage-7.6.0-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:dcd070b5b585b50e6617e8972f3fbbee786afca71b1936ac06257f7e178f00f6"}, - {file = "coverage-7.6.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:d50a252b23b9b4dfeefc1f663c568a221092cbaded20a05a11665d0dbec9b8fb"}, - {file = "coverage-7.6.0-cp310-cp310-win32.whl", hash = "sha256:0e7b27d04131c46e6894f23a4ae186a6a2207209a05df5b6ad4caee6d54a222c"}, - {file = "coverage-7.6.0-cp310-cp310-win_amd64.whl", hash = "sha256:54dece71673b3187c86226c3ca793c5f891f9fc3d8aa183f2e3653da18566169"}, - {file = "coverage-7.6.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:c7b525ab52ce18c57ae232ba6f7010297a87ced82a2383b1afd238849c1ff933"}, - {file = "coverage-7.6.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:4bea27c4269234e06f621f3fac3925f56ff34bc14521484b8f66a580aacc2e7d"}, - {file = "coverage-7.6.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ed8d1d1821ba5fc88d4a4f45387b65de52382fa3ef1f0115a4f7a20cdfab0e94"}, - {file = "coverage-7.6.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:01c322ef2bbe15057bc4bf132b525b7e3f7206f071799eb8aa6ad1940bcf5fb1"}, - {file = "coverage-7.6.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:03cafe82c1b32b770a29fd6de923625ccac3185a54a5e66606da26d105f37dac"}, - {file = "coverage-7.6.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:0d1b923fc4a40c5832be4f35a5dab0e5ff89cddf83bb4174499e02ea089daf57"}, - {file = "coverage-7.6.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:4b03741e70fb811d1a9a1d75355cf391f274ed85847f4b78e35459899f57af4d"}, - {file = "coverage-7.6.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:a73d18625f6a8a1cbb11eadc1d03929f9510f4131879288e3f7922097a429f63"}, - {file = "coverage-7.6.0-cp311-cp311-win32.whl", hash = "sha256:65fa405b837060db569a61ec368b74688f429b32fa47a8929a7a2f9b47183713"}, - {file = "coverage-7.6.0-cp311-cp311-win_amd64.whl", hash = "sha256:6379688fb4cfa921ae349c76eb1a9ab26b65f32b03d46bb0eed841fd4cb6afb1"}, - {file = "coverage-7.6.0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:f7db0b6ae1f96ae41afe626095149ecd1b212b424626175a6633c2999eaad45b"}, - {file = "coverage-7.6.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:bbdf9a72403110a3bdae77948b8011f644571311c2fb35ee15f0f10a8fc082e8"}, - {file = "coverage-7.6.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9cc44bf0315268e253bf563f3560e6c004efe38f76db03a1558274a6e04bf5d5"}, - {file = "coverage-7.6.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:da8549d17489cd52f85a9829d0e1d91059359b3c54a26f28bec2c5d369524807"}, - {file = "coverage-7.6.0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0086cd4fc71b7d485ac93ca4239c8f75732c2ae3ba83f6be1c9be59d9e2c6382"}, - {file = "coverage-7.6.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:1fad32ee9b27350687035cb5fdf9145bc9cf0a094a9577d43e909948ebcfa27b"}, - {file = "coverage-7.6.0-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:044a0985a4f25b335882b0966625270a8d9db3d3409ddc49a4eb00b0ef5e8cee"}, - {file = "coverage-7.6.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:76d5f82213aa78098b9b964ea89de4617e70e0d43e97900c2778a50856dac605"}, - {file = "coverage-7.6.0-cp312-cp312-win32.whl", hash = "sha256:3c59105f8d58ce500f348c5b56163a4113a440dad6daa2294b5052a10db866da"}, - {file = "coverage-7.6.0-cp312-cp312-win_amd64.whl", hash = "sha256:ca5d79cfdae420a1d52bf177de4bc2289c321d6c961ae321503b2ca59c17ae67"}, - {file = "coverage-7.6.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:d39bd10f0ae453554798b125d2f39884290c480f56e8a02ba7a6ed552005243b"}, - {file = "coverage-7.6.0-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:beb08e8508e53a568811016e59f3234d29c2583f6b6e28572f0954a6b4f7e03d"}, - {file = "coverage-7.6.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b2e16f4cd2bc4d88ba30ca2d3bbf2f21f00f382cf4e1ce3b1ddc96c634bc48ca"}, - {file = "coverage-7.6.0-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6616d1c9bf1e3faea78711ee42a8b972367d82ceae233ec0ac61cc7fec09fa6b"}, - {file = "coverage-7.6.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ad4567d6c334c46046d1c4c20024de2a1c3abc626817ae21ae3da600f5779b44"}, - {file = "coverage-7.6.0-cp38-cp38-musllinux_1_2_aarch64.whl", hash = "sha256:d17c6a415d68cfe1091d3296ba5749d3d8696e42c37fca5d4860c5bf7b729f03"}, - {file = "coverage-7.6.0-cp38-cp38-musllinux_1_2_i686.whl", hash = "sha256:9146579352d7b5f6412735d0f203bbd8d00113a680b66565e205bc605ef81bc6"}, - {file = "coverage-7.6.0-cp38-cp38-musllinux_1_2_x86_64.whl", hash = "sha256:cdab02a0a941af190df8782aafc591ef3ad08824f97850b015c8c6a8b3877b0b"}, - {file = "coverage-7.6.0-cp38-cp38-win32.whl", hash = "sha256:df423f351b162a702c053d5dddc0fc0ef9a9e27ea3f449781ace5f906b664428"}, - {file = "coverage-7.6.0-cp38-cp38-win_amd64.whl", hash = "sha256:f2501d60d7497fd55e391f423f965bbe9e650e9ffc3c627d5f0ac516026000b8"}, - {file = "coverage-7.6.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:7221f9ac9dad9492cecab6f676b3eaf9185141539d5c9689d13fd6b0d7de840c"}, - {file = "coverage-7.6.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:ddaaa91bfc4477d2871442bbf30a125e8fe6b05da8a0015507bfbf4718228ab2"}, - {file = "coverage-7.6.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c4cbe651f3904e28f3a55d6f371203049034b4ddbce65a54527a3f189ca3b390"}, - {file = "coverage-7.6.0-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:831b476d79408ab6ccfadaaf199906c833f02fdb32c9ab907b1d4aa0713cfa3b"}, - {file = "coverage-7.6.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:46c3d091059ad0b9c59d1034de74a7f36dcfa7f6d3bde782c49deb42438f2450"}, - {file = "coverage-7.6.0-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:4d5fae0a22dc86259dee66f2cc6c1d3e490c4a1214d7daa2a93d07491c5c04b6"}, - {file = "coverage-7.6.0-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:07ed352205574aad067482e53dd606926afebcb5590653121063fbf4e2175166"}, - {file = "coverage-7.6.0-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:49c76cdfa13015c4560702574bad67f0e15ca5a2872c6a125f6327ead2b731dd"}, - {file = "coverage-7.6.0-cp39-cp39-win32.whl", hash = "sha256:482855914928c8175735a2a59c8dc5806cf7d8f032e4820d52e845d1f731dca2"}, - {file = "coverage-7.6.0-cp39-cp39-win_amd64.whl", hash = "sha256:543ef9179bc55edfd895154a51792b01c017c87af0ebaae092720152e19e42ca"}, - {file = "coverage-7.6.0-pp38.pp39.pp310-none-any.whl", hash = "sha256:6fe885135c8a479d3e37a7aae61cbd3a0fb2deccb4dda3c25f92a49189f766d6"}, - {file = "coverage-7.6.0.tar.gz", hash = "sha256:289cc803fa1dc901f84701ac10c9ee873619320f2f9aff38794db4a4a0268d51"}, + {file = "coverage-7.6.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:b06079abebbc0e89e6163b8e8f0e16270124c154dc6e4a47b413dd538859af16"}, + {file = "coverage-7.6.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:cf4b19715bccd7ee27b6b120e7e9dd56037b9c0681dcc1adc9ba9db3d417fa36"}, + {file = "coverage-7.6.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e61c0abb4c85b095a784ef23fdd4aede7a2628478e7baba7c5e3deba61070a02"}, + {file = "coverage-7.6.1-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:fd21f6ae3f08b41004dfb433fa895d858f3f5979e7762d052b12aef444e29afc"}, + {file = "coverage-7.6.1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8f59d57baca39b32db42b83b2a7ba6f47ad9c394ec2076b084c3f029b7afca23"}, + {file = "coverage-7.6.1-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:a1ac0ae2b8bd743b88ed0502544847c3053d7171a3cff9228af618a068ed9c34"}, + {file = "coverage-7.6.1-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:e6a08c0be454c3b3beb105c0596ebdc2371fab6bb90c0c0297f4e58fd7e1012c"}, + {file = "coverage-7.6.1-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:f5796e664fe802da4f57a168c85359a8fbf3eab5e55cd4e4569fbacecc903959"}, + {file = "coverage-7.6.1-cp310-cp310-win32.whl", hash = "sha256:7bb65125fcbef8d989fa1dd0e8a060999497629ca5b0efbca209588a73356232"}, + {file = "coverage-7.6.1-cp310-cp310-win_amd64.whl", hash = "sha256:3115a95daa9bdba70aea750db7b96b37259a81a709223c8448fa97727d546fe0"}, + {file = "coverage-7.6.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:7dea0889685db8550f839fa202744652e87c60015029ce3f60e006f8c4462c93"}, + {file = "coverage-7.6.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:ed37bd3c3b063412f7620464a9ac1314d33100329f39799255fb8d3027da50d3"}, + {file = "coverage-7.6.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d85f5e9a5f8b73e2350097c3756ef7e785f55bd71205defa0bfdaf96c31616ff"}, + {file = "coverage-7.6.1-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:9bc572be474cafb617672c43fe989d6e48d3c83af02ce8de73fff1c6bb3c198d"}, + {file = "coverage-7.6.1-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0c0420b573964c760df9e9e86d1a9a622d0d27f417e1a949a8a66dd7bcee7bc6"}, + {file = "coverage-7.6.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:1f4aa8219db826ce6be7099d559f8ec311549bfc4046f7f9fe9b5cea5c581c56"}, + {file = "coverage-7.6.1-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:fc5a77d0c516700ebad189b587de289a20a78324bc54baee03dd486f0855d234"}, + {file = "coverage-7.6.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:b48f312cca9621272ae49008c7f613337c53fadca647d6384cc129d2996d1133"}, + {file = "coverage-7.6.1-cp311-cp311-win32.whl", hash = "sha256:1125ca0e5fd475cbbba3bb67ae20bd2c23a98fac4e32412883f9bcbaa81c314c"}, + {file = "coverage-7.6.1-cp311-cp311-win_amd64.whl", hash = "sha256:8ae539519c4c040c5ffd0632784e21b2f03fc1340752af711f33e5be83a9d6c6"}, + {file = "coverage-7.6.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:95cae0efeb032af8458fc27d191f85d1717b1d4e49f7cb226cf526ff28179778"}, + {file = "coverage-7.6.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:5621a9175cf9d0b0c84c2ef2b12e9f5f5071357c4d2ea6ca1cf01814f45d2391"}, + {file = "coverage-7.6.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:260933720fdcd75340e7dbe9060655aff3af1f0c5d20f46b57f262ab6c86a5e8"}, + {file = "coverage-7.6.1-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:07e2ca0ad381b91350c0ed49d52699b625aab2b44b65e1b4e02fa9df0e92ad2d"}, + {file = "coverage-7.6.1-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c44fee9975f04b33331cb8eb272827111efc8930cfd582e0320613263ca849ca"}, + {file = "coverage-7.6.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:877abb17e6339d96bf08e7a622d05095e72b71f8afd8a9fefc82cf30ed944163"}, + {file = "coverage-7.6.1-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:3e0cadcf6733c09154b461f1ca72d5416635e5e4ec4e536192180d34ec160f8a"}, + {file = "coverage-7.6.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:c3c02d12f837d9683e5ab2f3d9844dc57655b92c74e286c262e0fc54213c216d"}, + {file = "coverage-7.6.1-cp312-cp312-win32.whl", hash = "sha256:e05882b70b87a18d937ca6768ff33cc3f72847cbc4de4491c8e73880766718e5"}, + {file = "coverage-7.6.1-cp312-cp312-win_amd64.whl", hash = "sha256:b5d7b556859dd85f3a541db6a4e0167b86e7273e1cdc973e5b175166bb634fdb"}, + {file = "coverage-7.6.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:a4acd025ecc06185ba2b801f2de85546e0b8ac787cf9d3b06e7e2a69f925b106"}, + {file = "coverage-7.6.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:a6d3adcf24b624a7b778533480e32434a39ad8fa30c315208f6d3e5542aeb6e9"}, + {file = "coverage-7.6.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d0c212c49b6c10e6951362f7c6df3329f04c2b1c28499563d4035d964ab8e08c"}, + {file = "coverage-7.6.1-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6e81d7a3e58882450ec4186ca59a3f20a5d4440f25b1cff6f0902ad890e6748a"}, + {file = "coverage-7.6.1-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:78b260de9790fd81e69401c2dc8b17da47c8038176a79092a89cb2b7d945d060"}, + {file = "coverage-7.6.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:a78d169acd38300060b28d600344a803628c3fd585c912cacc9ea8790fe96862"}, + {file = "coverage-7.6.1-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:2c09f4ce52cb99dd7505cd0fc8e0e37c77b87f46bc9c1eb03fe3bc9991085388"}, + {file = "coverage-7.6.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:6878ef48d4227aace338d88c48738a4258213cd7b74fd9a3d4d7582bb1d8a155"}, + {file = "coverage-7.6.1-cp313-cp313-win32.whl", hash = "sha256:44df346d5215a8c0e360307d46ffaabe0f5d3502c8a1cefd700b34baf31d411a"}, + {file = "coverage-7.6.1-cp313-cp313-win_amd64.whl", hash = "sha256:8284cf8c0dd272a247bc154eb6c95548722dce90d098c17a883ed36e67cdb129"}, + {file = "coverage-7.6.1-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:d3296782ca4eab572a1a4eca686d8bfb00226300dcefdf43faa25b5242ab8a3e"}, + {file = "coverage-7.6.1-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:502753043567491d3ff6d08629270127e0c31d4184c4c8d98f92c26f65019962"}, + {file = "coverage-7.6.1-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6a89ecca80709d4076b95f89f308544ec8f7b4727e8a547913a35f16717856cb"}, + {file = "coverage-7.6.1-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:a318d68e92e80af8b00fa99609796fdbcdfef3629c77c6283566c6f02c6d6704"}, + {file = "coverage-7.6.1-cp313-cp313t-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:13b0a73a0896988f053e4fbb7de6d93388e6dd292b0d87ee51d106f2c11b465b"}, + {file = "coverage-7.6.1-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:4421712dbfc5562150f7554f13dde997a2e932a6b5f352edcce948a815efee6f"}, + {file = "coverage-7.6.1-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:166811d20dfea725e2e4baa71fffd6c968a958577848d2131f39b60043400223"}, + {file = "coverage-7.6.1-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:225667980479a17db1048cb2bf8bfb39b8e5be8f164b8f6628b64f78a72cf9d3"}, + {file = "coverage-7.6.1-cp313-cp313t-win32.whl", hash = "sha256:170d444ab405852903b7d04ea9ae9b98f98ab6d7e63e1115e82620807519797f"}, + {file = "coverage-7.6.1-cp313-cp313t-win_amd64.whl", hash = "sha256:b9f222de8cded79c49bf184bdbc06630d4c58eec9459b939b4a690c82ed05657"}, + {file = "coverage-7.6.1-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:6db04803b6c7291985a761004e9060b2bca08da6d04f26a7f2294b8623a0c1a0"}, + {file = "coverage-7.6.1-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:f1adfc8ac319e1a348af294106bc6a8458a0f1633cc62a1446aebc30c5fa186a"}, + {file = "coverage-7.6.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a95324a9de9650a729239daea117df21f4b9868ce32e63f8b650ebe6cef5595b"}, + {file = "coverage-7.6.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b43c03669dc4618ec25270b06ecd3ee4fa94c7f9b3c14bae6571ca00ef98b0d3"}, + {file = "coverage-7.6.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8929543a7192c13d177b770008bc4e8119f2e1f881d563fc6b6305d2d0ebe9de"}, + {file = "coverage-7.6.1-cp38-cp38-musllinux_1_2_aarch64.whl", hash = "sha256:a09ece4a69cf399510c8ab25e0950d9cf2b42f7b3cb0374f95d2e2ff594478a6"}, + {file = "coverage-7.6.1-cp38-cp38-musllinux_1_2_i686.whl", hash = "sha256:9054a0754de38d9dbd01a46621636689124d666bad1936d76c0341f7d71bf569"}, + {file = "coverage-7.6.1-cp38-cp38-musllinux_1_2_x86_64.whl", hash = "sha256:0dbde0f4aa9a16fa4d754356a8f2e36296ff4d83994b2c9d8398aa32f222f989"}, + {file = "coverage-7.6.1-cp38-cp38-win32.whl", hash = "sha256:da511e6ad4f7323ee5702e6633085fb76c2f893aaf8ce4c51a0ba4fc07580ea7"}, + {file = "coverage-7.6.1-cp38-cp38-win_amd64.whl", hash = "sha256:3f1156e3e8f2872197af3840d8ad307a9dd18e615dc64d9ee41696f287c57ad8"}, + {file = "coverage-7.6.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:abd5fd0db5f4dc9289408aaf34908072f805ff7792632250dcb36dc591d24255"}, + {file = "coverage-7.6.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:547f45fa1a93154bd82050a7f3cddbc1a7a4dd2a9bf5cb7d06f4ae29fe94eaf8"}, + {file = "coverage-7.6.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:645786266c8f18a931b65bfcefdbf6952dd0dea98feee39bd188607a9d307ed2"}, + {file = "coverage-7.6.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:9e0b2df163b8ed01d515807af24f63de04bebcecbd6c3bfeff88385789fdf75a"}, + {file = "coverage-7.6.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:609b06f178fe8e9f89ef676532760ec0b4deea15e9969bf754b37f7c40326dbc"}, + {file = "coverage-7.6.1-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:702855feff378050ae4f741045e19a32d57d19f3e0676d589df0575008ea5004"}, + {file = "coverage-7.6.1-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:2bdb062ea438f22d99cba0d7829c2ef0af1d768d1e4a4f528087224c90b132cb"}, + {file = "coverage-7.6.1-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:9c56863d44bd1c4fe2abb8a4d6f5371d197f1ac0ebdee542f07f35895fc07f36"}, + {file = "coverage-7.6.1-cp39-cp39-win32.whl", hash = "sha256:6e2cd258d7d927d09493c8df1ce9174ad01b381d4729a9d8d4e38670ca24774c"}, + {file = "coverage-7.6.1-cp39-cp39-win_amd64.whl", hash = "sha256:06a737c882bd26d0d6ee7269b20b12f14a8704807a01056c80bb881a4b2ce6ca"}, + {file = "coverage-7.6.1-pp38.pp39.pp310-none-any.whl", hash = "sha256:e9a6e0eb86070e8ccaedfbd9d38fec54864f3125ab95419970575b42af7541df"}, + {file = "coverage-7.6.1.tar.gz", hash = "sha256:953510dfb7b12ab69d20135a0662397f077c59b1e6379a768e97c59d852ee51d"}, ] [package.extras] @@ -154,13 +174,13 @@ poetry-plugin = ["poetry (>=1.0,<2.0)"] [[package]] name = "pyright" -version = "1.1.376" +version = "1.1.378" description = "Command line wrapper for pyright" optional = false python-versions = ">=3.7" files = [ - {file = "pyright-1.1.376-py3-none-any.whl", hash = "sha256:0f2473b12c15c46b3207f0eec224c3cea2bdc07cd45dd4a037687cbbca0fbeff"}, - {file = "pyright-1.1.376.tar.gz", hash = "sha256:bffd63b197cd0810395bb3245c06b01f95a85ddf6bfa0e5644ed69c841e954dd"}, + {file = "pyright-1.1.378-py3-none-any.whl", hash = "sha256:8853776138b01bc284da07ac481235be7cc89d3176b073d2dba73636cb95be79"}, + {file = "pyright-1.1.378.tar.gz", hash = "sha256:78a043be2876d12d0af101d667e92c7734f3ebb9db71dccc2c220e7e7eb89ca2"}, ] [package.dependencies] @@ -266,29 +286,29 @@ files = [ [[package]] name = "ruff" -version = "0.5.7" +version = "0.6.3" description = "An extremely fast Python linter and code formatter, written in Rust." optional = false python-versions = ">=3.7" files = [ - {file = "ruff-0.5.7-py3-none-linux_armv6l.whl", hash = "sha256:548992d342fc404ee2e15a242cdbea4f8e39a52f2e7752d0e4cbe88d2d2f416a"}, - {file = "ruff-0.5.7-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:00cc8872331055ee017c4f1071a8a31ca0809ccc0657da1d154a1d2abac5c0be"}, - {file = "ruff-0.5.7-py3-none-macosx_11_0_arm64.whl", hash = "sha256:eaf3d86a1fdac1aec8a3417a63587d93f906c678bb9ed0b796da7b59c1114a1e"}, - {file = "ruff-0.5.7-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a01c34400097b06cf8a6e61b35d6d456d5bd1ae6961542de18ec81eaf33b4cb8"}, - {file = "ruff-0.5.7-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:fcc8054f1a717e2213500edaddcf1dbb0abad40d98e1bd9d0ad364f75c763eea"}, - {file = "ruff-0.5.7-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:7f70284e73f36558ef51602254451e50dd6cc479f8b6f8413a95fcb5db4a55fc"}, - {file = "ruff-0.5.7-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:a78ad870ae3c460394fc95437d43deb5c04b5c29297815a2a1de028903f19692"}, - {file = "ruff-0.5.7-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:9ccd078c66a8e419475174bfe60a69adb36ce04f8d4e91b006f1329d5cd44bcf"}, - {file = "ruff-0.5.7-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:7e31c9bad4ebf8fdb77b59cae75814440731060a09a0e0077d559a556453acbb"}, - {file = "ruff-0.5.7-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8d796327eed8e168164346b769dd9a27a70e0298d667b4ecee6877ce8095ec8e"}, - {file = "ruff-0.5.7-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:4a09ea2c3f7778cc635e7f6edf57d566a8ee8f485f3c4454db7771efb692c499"}, - {file = "ruff-0.5.7-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:a36d8dcf55b3a3bc353270d544fb170d75d2dff41eba5df57b4e0b67a95bb64e"}, - {file = "ruff-0.5.7-py3-none-musllinux_1_2_i686.whl", hash = "sha256:9369c218f789eefbd1b8d82a8cf25017b523ac47d96b2f531eba73770971c9e5"}, - {file = "ruff-0.5.7-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:b88ca3db7eb377eb24fb7c82840546fb7acef75af4a74bd36e9ceb37a890257e"}, - {file = "ruff-0.5.7-py3-none-win32.whl", hash = "sha256:33d61fc0e902198a3e55719f4be6b375b28f860b09c281e4bdbf783c0566576a"}, - {file = "ruff-0.5.7-py3-none-win_amd64.whl", hash = "sha256:083bbcbe6fadb93cd86709037acc510f86eed5a314203079df174c40bbbca6b3"}, - {file = "ruff-0.5.7-py3-none-win_arm64.whl", hash = "sha256:2dca26154ff9571995107221d0aeaad0e75a77b5a682d6236cf89a58c70b76f4"}, - {file = "ruff-0.5.7.tar.gz", hash = "sha256:8dfc0a458797f5d9fb622dd0efc52d796f23f0a1493a9527f4e49a550ae9a7e5"}, + {file = "ruff-0.6.3-py3-none-linux_armv6l.whl", hash = "sha256:97f58fda4e309382ad30ede7f30e2791d70dd29ea17f41970119f55bdb7a45c3"}, + {file = "ruff-0.6.3-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:3b061e49b5cf3a297b4d1c27ac5587954ccb4ff601160d3d6b2f70b1622194dc"}, + {file = "ruff-0.6.3-py3-none-macosx_11_0_arm64.whl", hash = "sha256:34e2824a13bb8c668c71c1760a6ac7d795ccbd8d38ff4a0d8471fdb15de910b1"}, + {file = "ruff-0.6.3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:bddfbb8d63c460f4b4128b6a506e7052bad4d6f3ff607ebbb41b0aa19c2770d1"}, + {file = "ruff-0.6.3-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:ced3eeb44df75353e08ab3b6a9e113b5f3f996bea48d4f7c027bc528ba87b672"}, + {file = "ruff-0.6.3-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:47021dff5445d549be954eb275156dfd7c37222acc1e8014311badcb9b4ec8c1"}, + {file = "ruff-0.6.3-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:7d7bd20dc07cebd68cc8bc7b3f5ada6d637f42d947c85264f94b0d1cd9d87384"}, + {file = "ruff-0.6.3-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:500f166d03fc6d0e61c8e40a3ff853fa8a43d938f5d14c183c612df1b0d6c58a"}, + {file = "ruff-0.6.3-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:42844ff678f9b976366b262fa2d1d1a3fe76f6e145bd92c84e27d172e3c34500"}, + {file = "ruff-0.6.3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:70452a10eb2d66549de8e75f89ae82462159855e983ddff91bc0bce6511d0470"}, + {file = "ruff-0.6.3-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:65a533235ed55f767d1fc62193a21cbf9e3329cf26d427b800fdeacfb77d296f"}, + {file = "ruff-0.6.3-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:d2e2c23cef30dc3cbe9cc5d04f2899e7f5e478c40d2e0a633513ad081f7361b5"}, + {file = "ruff-0.6.3-py3-none-musllinux_1_2_i686.whl", hash = "sha256:d8a136aa7d228975a6aee3dd8bea9b28e2b43e9444aa678fb62aeb1956ff2351"}, + {file = "ruff-0.6.3-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:f92fe93bc72e262b7b3f2bba9879897e2d58a989b4714ba6a5a7273e842ad2f8"}, + {file = "ruff-0.6.3-py3-none-win32.whl", hash = "sha256:7a62d3b5b0d7f9143d94893f8ba43aa5a5c51a0ffc4a401aa97a81ed76930521"}, + {file = "ruff-0.6.3-py3-none-win_amd64.whl", hash = "sha256:746af39356fee2b89aada06c7376e1aa274a23493d7016059c3a72e3b296befb"}, + {file = "ruff-0.6.3-py3-none-win_arm64.whl", hash = "sha256:14a9528a8b70ccc7a847637c29e56fd1f9183a9db743bbc5b8e0c4ad60592a82"}, + {file = "ruff-0.6.3.tar.gz", hash = "sha256:183b99e9edd1ef63be34a3b51fee0a9f4ab95add123dbf89a71f7b1f0c991983"}, ] [[package]] @@ -331,4 +351,4 @@ files = [ [metadata] lock-version = "2.0" python-versions = "^3.11" -content-hash = "15050b0eb2eec2ad7205dece0029bc7da8441773a3b266ad0a2be6da16e4de88" +content-hash = "13ae29580c51f202a30c51e7df656aa4ebc60cd54a950ade1eaafc8f62ad7786" diff --git a/pyproject.toml b/pyproject.toml index fbfec5a..e3e6a25 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "python-redux" -version = "0.16.0" +version = "0.16.1" description = "Redux implementation for Python" authors = ["Sassan Haradji "] license = "Apache-2.0" @@ -14,6 +14,8 @@ packages = [{ include = "redux" }, { include = "redux_pytest" }] python = "^3.11" python-immutable = "^1.1.1" python-strtobool = "^1.0.0" +pyright = "^1.1.378" +ruff = "^0.6.3" [tool.poetry.group.dev] optional = true @@ -21,7 +23,7 @@ optional = true [tool.poetry.group.dev.dependencies] poethepoet = "^0.24.4" pyright = "^1.1.376" -ruff = "^0.5.7" +ruff = "^0.6.0" pytest = "^8.1.1" pytest-cov = "^4.1.0" pytest-timeout = "^2.3.1" diff --git a/redux/serialization_mixin.py b/redux/serialization_mixin.py index 7334b77..54da14b 100644 --- a/redux/serialization_mixin.py +++ b/redux/serialization_mixin.py @@ -37,7 +37,7 @@ def _serialize_dataclass_to_dict( cls: type[SerializationMixin], obj: Immutable, ) -> dict[str, Any]: - result = {} + result: dict[str, object] = {'_type': obj.__class__.__name__} for field in dataclasses.fields(obj): value = cls.serialize_value(getattr(obj, field.name)) result[field.name] = value diff --git a/redux_pytest/fixtures/event_loop.py b/redux_pytest/fixtures/event_loop.py index 0abf266..a1754d5 100644 --- a/redux_pytest/fixtures/event_loop.py +++ b/redux_pytest/fixtures/event_loop.py @@ -25,7 +25,7 @@ def create_task(self: LoopThread, coro: Coroutine) -> None: self.loop.call_soon_threadsafe(self.loop.create_task, coro) -@pytest.fixture() +@pytest.fixture def event_loop() -> LoopThread: loop_thread = LoopThread() loop_thread.start() diff --git a/redux_pytest/fixtures/monitor.py b/redux_pytest/fixtures/monitor.py index e4894ff..9c7fe80 100644 --- a/redux_pytest/fixtures/monitor.py +++ b/redux_pytest/fixtures/monitor.py @@ -39,7 +39,7 @@ def monitor(self: StoreMonitor, store: Store) -> None: self.store.register_event_middleware(self._event_middleware) -@pytest.fixture() +@pytest.fixture def store_monitor(store: Store, mocker: MockerFixture) -> StoreMonitor: """Fixture to check if an action was dispatched.""" monitor = StoreMonitor(mocker) diff --git a/redux_pytest/fixtures/snapshot.py b/redux_pytest/fixtures/snapshot.py index 6a9e509..0fa98e9 100644 --- a/redux_pytest/fixtures/snapshot.py +++ b/redux_pytest/fixtures/snapshot.py @@ -145,13 +145,13 @@ def close(self: StoreSnapshot[State]) -> None: assert not json_path.exists(), f'Snapshot {filename} not taken' -@pytest.fixture() +@pytest.fixture def snapshot_prefix() -> str | None: """Return the prefix for the snapshots.""" return None -@pytest.fixture() +@pytest.fixture def store_snapshot( request: SubRequest, store: Store, diff --git a/redux_pytest/fixtures/store.py b/redux_pytest/fixtures/store.py index 8208800..0d59334 100644 --- a/redux_pytest/fixtures/store.py +++ b/redux_pytest/fixtures/store.py @@ -10,14 +10,14 @@ from redux.main import Store -@pytest.fixture() -def store() -> Store: # noqa: PT004 # pragma: no cover +@pytest.fixture +def store() -> Store: # pragma: no cover """Provide current store (this is a placeholder returning None).""" msg = 'This fixture should be overridden.' raise NotImplementedError(msg) -@pytest.fixture() +@pytest.fixture def needs_finish(store: Store) -> Generator: """Dispatch a finish action after the test.""" yield None diff --git a/redux_pytest/fixtures/wait_for.py b/redux_pytest/fixtures/wait_for.py index c48e6f8..bae0e69 100644 --- a/redux_pytest/fixtures/wait_for.py +++ b/redux_pytest/fixtures/wait_for.py @@ -157,7 +157,7 @@ def wrapper(*args: WaitForArgs.args, **kwargs: WaitForArgs.kwargs) -> None: return decorator(check) if check else decorator -@pytest.fixture() +@pytest.fixture def wait_for() -> Generator[WaitFor, None, None]: """Provide `wait_for` decorator.""" context = WaitFor() diff --git a/tests/results/test_autorun/callability/store-000.jsonc b/tests/results/test_autorun/callability/store-000.jsonc index 6b03ea4..8e039a8 100644 --- a/tests/results/test_autorun/callability/store-000.jsonc +++ b/tests/results/test_autorun/callability/store-000.jsonc @@ -1,4 +1,5 @@ // store-000 { + "_type": "StateType", "value": 0 } diff --git a/tests/results/test_autorun/callability/store-001.jsonc b/tests/results/test_autorun/callability/store-001.jsonc index 0b4546b..0d1a49f 100644 --- a/tests/results/test_autorun/callability/store-001.jsonc +++ b/tests/results/test_autorun/callability/store-001.jsonc @@ -1,4 +1,5 @@ // store-001 { + "_type": "StateType", "value": 1 } diff --git a/tests/results/test_autorun/callability/store-002.jsonc b/tests/results/test_autorun/callability/store-002.jsonc index 025afd6..c7146b3 100644 --- a/tests/results/test_autorun/callability/store-002.jsonc +++ b/tests/results/test_autorun/callability/store-002.jsonc @@ -1,4 +1,5 @@ // store-002 { + "_type": "StateType", "value": 3 } diff --git a/tests/results/test_autorun/callability/store-003.jsonc b/tests/results/test_autorun/callability/store-003.jsonc index 2f43e48..7017075 100644 --- a/tests/results/test_autorun/callability/store-003.jsonc +++ b/tests/results/test_autorun/callability/store-003.jsonc @@ -1,4 +1,5 @@ // store-003 { + "_type": "StateType", "value": 4 } diff --git a/tests/results/test_autorun/general/store-000.jsonc b/tests/results/test_autorun/general/store-000.jsonc index 6b03ea4..8e039a8 100644 --- a/tests/results/test_autorun/general/store-000.jsonc +++ b/tests/results/test_autorun/general/store-000.jsonc @@ -1,4 +1,5 @@ // store-000 { + "_type": "StateType", "value": 0 } diff --git a/tests/results/test_autorun/general/store-001.jsonc b/tests/results/test_autorun/general/store-001.jsonc index 0b4546b..0d1a49f 100644 --- a/tests/results/test_autorun/general/store-001.jsonc +++ b/tests/results/test_autorun/general/store-001.jsonc @@ -1,4 +1,5 @@ // store-001 { + "_type": "StateType", "value": 1 } diff --git a/tests/results/test_autorun/general/store-002.jsonc b/tests/results/test_autorun/general/store-002.jsonc index 025afd6..c7146b3 100644 --- a/tests/results/test_autorun/general/store-002.jsonc +++ b/tests/results/test_autorun/general/store-002.jsonc @@ -1,4 +1,5 @@ // store-002 { + "_type": "StateType", "value": 3 } diff --git a/tests/results/test_autorun/general/store-003.jsonc b/tests/results/test_autorun/general/store-003.jsonc index 2f43e48..7017075 100644 --- a/tests/results/test_autorun/general/store-003.jsonc +++ b/tests/results/test_autorun/general/store-003.jsonc @@ -1,4 +1,5 @@ // store-003 { + "_type": "StateType", "value": 4 } diff --git a/tests/results/test_autorun/subscription/store-000.jsonc b/tests/results/test_autorun/subscription/store-000.jsonc index 6b03ea4..8e039a8 100644 --- a/tests/results/test_autorun/subscription/store-000.jsonc +++ b/tests/results/test_autorun/subscription/store-000.jsonc @@ -1,4 +1,5 @@ // store-000 { + "_type": "StateType", "value": 0 } diff --git a/tests/results/test_autorun/subscription/store-001.jsonc b/tests/results/test_autorun/subscription/store-001.jsonc index 0b4546b..0d1a49f 100644 --- a/tests/results/test_autorun/subscription/store-001.jsonc +++ b/tests/results/test_autorun/subscription/store-001.jsonc @@ -1,4 +1,5 @@ // store-001 { + "_type": "StateType", "value": 1 } diff --git a/tests/results/test_autorun/subscription/store-002.jsonc b/tests/results/test_autorun/subscription/store-002.jsonc index 025afd6..c7146b3 100644 --- a/tests/results/test_autorun/subscription/store-002.jsonc +++ b/tests/results/test_autorun/subscription/store-002.jsonc @@ -1,4 +1,5 @@ // store-002 { + "_type": "StateType", "value": 3 } diff --git a/tests/results/test_autorun/subscription/store-003.jsonc b/tests/results/test_autorun/subscription/store-003.jsonc index 2f43e48..7017075 100644 --- a/tests/results/test_autorun/subscription/store-003.jsonc +++ b/tests/results/test_autorun/subscription/store-003.jsonc @@ -1,4 +1,5 @@ // store-003 { + "_type": "StateType", "value": 4 } diff --git a/tests/results/test_autorun/value_property/store-000.jsonc b/tests/results/test_autorun/value_property/store-000.jsonc index 6b03ea4..8e039a8 100644 --- a/tests/results/test_autorun/value_property/store-000.jsonc +++ b/tests/results/test_autorun/value_property/store-000.jsonc @@ -1,4 +1,5 @@ // store-000 { + "_type": "StateType", "value": 0 } diff --git a/tests/results/test_autorun/value_property/store-001.jsonc b/tests/results/test_autorun/value_property/store-001.jsonc index 0b4546b..0d1a49f 100644 --- a/tests/results/test_autorun/value_property/store-001.jsonc +++ b/tests/results/test_autorun/value_property/store-001.jsonc @@ -1,4 +1,5 @@ // store-001 { + "_type": "StateType", "value": 1 } diff --git a/tests/results/test_autorun/value_property/store-002.jsonc b/tests/results/test_autorun/value_property/store-002.jsonc index 025afd6..c7146b3 100644 --- a/tests/results/test_autorun/value_property/store-002.jsonc +++ b/tests/results/test_autorun/value_property/store-002.jsonc @@ -1,4 +1,5 @@ // store-002 { + "_type": "StateType", "value": 3 } diff --git a/tests/results/test_autorun/value_property/store-003.jsonc b/tests/results/test_autorun/value_property/store-003.jsonc index 2f43e48..7017075 100644 --- a/tests/results/test_autorun/value_property/store-003.jsonc +++ b/tests/results/test_autorun/value_property/store-003.jsonc @@ -1,4 +1,5 @@ // store-003 { + "_type": "StateType", "value": 4 } diff --git a/tests/results/test_autorun/with_comparator/store-000.jsonc b/tests/results/test_autorun/with_comparator/store-000.jsonc index 6b03ea4..8e039a8 100644 --- a/tests/results/test_autorun/with_comparator/store-000.jsonc +++ b/tests/results/test_autorun/with_comparator/store-000.jsonc @@ -1,4 +1,5 @@ // store-000 { + "_type": "StateType", "value": 0 } diff --git a/tests/results/test_autorun/with_comparator/store-001.jsonc b/tests/results/test_autorun/with_comparator/store-001.jsonc index 0b4546b..0d1a49f 100644 --- a/tests/results/test_autorun/with_comparator/store-001.jsonc +++ b/tests/results/test_autorun/with_comparator/store-001.jsonc @@ -1,4 +1,5 @@ // store-001 { + "_type": "StateType", "value": 1 } diff --git a/tests/results/test_autorun/with_comparator/store-002.jsonc b/tests/results/test_autorun/with_comparator/store-002.jsonc index 1470119..3b0ffa9 100644 --- a/tests/results/test_autorun/with_comparator/store-002.jsonc +++ b/tests/results/test_autorun/with_comparator/store-002.jsonc @@ -1,4 +1,5 @@ // store-002 { + "_type": "StateType", "value": 4 } diff --git a/tests/results/test_features/general/store-000.jsonc b/tests/results/test_features/general/store-000.jsonc index a92cf02..112da97 100644 --- a/tests/results/test_features/general/store-000.jsonc +++ b/tests/results/test_features/general/store-000.jsonc @@ -1,10 +1,13 @@ // store-000 { "_id": "e3e70682c2094cac629f6fbed82c07cd", + "_type": "StateType", "base10": { + "_type": "CountStateType", "count": 10 }, "straight": { + "_type": "CountStateType", "count": 0 } } diff --git a/tests/results/test_features/general/store-001.jsonc b/tests/results/test_features/general/store-001.jsonc index 0fdd239..a84652a 100644 --- a/tests/results/test_features/general/store-001.jsonc +++ b/tests/results/test_features/general/store-001.jsonc @@ -1,10 +1,13 @@ // store-001 { "_id": "e3e70682c2094cac629f6fbed82c07cd", + "_type": "StateType", "base10": { + "_type": "CountStateType", "count": 11 }, "straight": { + "_type": "CountStateType", "count": 1 } } diff --git a/tests/results/test_features/general/store-002.jsonc b/tests/results/test_features/general/store-002.jsonc index 832f9dc..cbdbaf0 100644 --- a/tests/results/test_features/general/store-002.jsonc +++ b/tests/results/test_features/general/store-002.jsonc @@ -1,13 +1,17 @@ // store-002 { "_id": "e3e70682c2094cac629f6fbed82c07cd", + "_type": "StateType", "base10": { + "_type": "CountStateType", "count": 12 }, "inverse": { + "_type": "CountStateType", "count": -1 }, "straight": { + "_type": "CountStateType", "count": 2 } } diff --git a/tests/results/test_features/general/store-003.jsonc b/tests/results/test_features/general/store-003.jsonc index 76fb207..7f86579 100644 --- a/tests/results/test_features/general/store-003.jsonc +++ b/tests/results/test_features/general/store-003.jsonc @@ -1,10 +1,13 @@ // store-003 { "_id": "e3e70682c2094cac629f6fbed82c07cd", + "_type": "StateType", "base10": { + "_type": "CountStateType", "count": 12 }, "inverse": { + "_type": "CountStateType", "count": -1 } } diff --git a/tests/results/test_features/general/store-004.jsonc b/tests/results/test_features/general/store-004.jsonc index 61ee8fc..70d7565 100644 --- a/tests/results/test_features/general/store-004.jsonc +++ b/tests/results/test_features/general/store-004.jsonc @@ -1,10 +1,13 @@ // store-004 { "_id": "e3e70682c2094cac629f6fbed82c07cd", + "_type": "StateType", "base10": { + "_type": "CountStateType", "count": 10 }, "inverse": { + "_type": "CountStateType", "count": 1 } } diff --git a/tests/results/test_features/general/store-005.jsonc b/tests/results/test_features/general/store-005.jsonc index 652121f..fd46eff 100644 --- a/tests/results/test_features/general/store-005.jsonc +++ b/tests/results/test_features/general/store-005.jsonc @@ -1,10 +1,13 @@ // store-005 { "_id": "e3e70682c2094cac629f6fbed82c07cd", + "_type": "StateType", "base10": { + "_type": "CountStateType", "count": 8 }, "inverse": { + "_type": "CountStateType", "count": 3 } } diff --git a/tests/results/test_features/general/store-autorun-000.jsonc b/tests/results/test_features/general/store-autorun-000.jsonc index 5e1da99..66921f6 100644 --- a/tests/results/test_features/general/store-autorun-000.jsonc +++ b/tests/results/test_features/general/store-autorun-000.jsonc @@ -1,10 +1,13 @@ // store-autorun-000 { "_id": "e3e70682c2094cac629f6fbed82c07cd", + "_type": "StateType", "base10": { + "_type": "CountStateType", "count": 10 }, "straight": { + "_type": "CountStateType", "count": 0 } } diff --git a/tests/results/test_features/general/store-autorun-001.jsonc b/tests/results/test_features/general/store-autorun-001.jsonc index 471ffe7..9084ab0 100644 --- a/tests/results/test_features/general/store-autorun-001.jsonc +++ b/tests/results/test_features/general/store-autorun-001.jsonc @@ -1,10 +1,13 @@ // store-autorun-001 { "_id": "e3e70682c2094cac629f6fbed82c07cd", + "_type": "StateType", "base10": { + "_type": "CountStateType", "count": 11 }, "straight": { + "_type": "CountStateType", "count": 1 } } diff --git a/tests/results/test_features/general/store-autorun-002.jsonc b/tests/results/test_features/general/store-autorun-002.jsonc index 340ba1e..9c8eb28 100644 --- a/tests/results/test_features/general/store-autorun-002.jsonc +++ b/tests/results/test_features/general/store-autorun-002.jsonc @@ -1,13 +1,17 @@ // store-autorun-002 { "_id": "e3e70682c2094cac629f6fbed82c07cd", + "_type": "StateType", "base10": { + "_type": "CountStateType", "count": 12 }, "inverse": { + "_type": "CountStateType", "count": -1 }, "straight": { + "_type": "CountStateType", "count": 2 } } diff --git a/tests/results/test_features/general/store-autorun-003.jsonc b/tests/results/test_features/general/store-autorun-003.jsonc index c0153f0..3170c8a 100644 --- a/tests/results/test_features/general/store-autorun-003.jsonc +++ b/tests/results/test_features/general/store-autorun-003.jsonc @@ -1,10 +1,13 @@ // store-autorun-003 { "_id": "e3e70682c2094cac629f6fbed82c07cd", + "_type": "StateType", "base10": { + "_type": "CountStateType", "count": 10 }, "inverse": { + "_type": "CountStateType", "count": 1 } } diff --git a/tests/results/test_features/general/store-autorun-004.jsonc b/tests/results/test_features/general/store-autorun-004.jsonc index 522e752..b418e90 100644 --- a/tests/results/test_features/general/store-autorun-004.jsonc +++ b/tests/results/test_features/general/store-autorun-004.jsonc @@ -1,10 +1,13 @@ // store-autorun-004 { "_id": "e3e70682c2094cac629f6fbed82c07cd", + "_type": "StateType", "base10": { + "_type": "CountStateType", "count": 8 }, "inverse": { + "_type": "CountStateType", "count": 3 } } diff --git a/tests/results/test_features/general/store-autorun_subscription-000.jsonc b/tests/results/test_features/general/store-autorun_subscription-000.jsonc index 01577cd..f5ece21 100644 --- a/tests/results/test_features/general/store-autorun_subscription-000.jsonc +++ b/tests/results/test_features/general/store-autorun_subscription-000.jsonc @@ -1,10 +1,13 @@ // store-autorun_subscription-000 { "_id": "e3e70682c2094cac629f6fbed82c07cd", + "_type": "StateType", "base10": { + "_type": "CountStateType", "count": 10 }, "straight": { + "_type": "CountStateType", "count": 0 } } diff --git a/tests/results/test_features/general/store-autorun_subscription-001.jsonc b/tests/results/test_features/general/store-autorun_subscription-001.jsonc index 3f9c062..dc774e4 100644 --- a/tests/results/test_features/general/store-autorun_subscription-001.jsonc +++ b/tests/results/test_features/general/store-autorun_subscription-001.jsonc @@ -1,10 +1,13 @@ // store-autorun_subscription-001 { "_id": "e3e70682c2094cac629f6fbed82c07cd", + "_type": "StateType", "base10": { + "_type": "CountStateType", "count": 11 }, "straight": { + "_type": "CountStateType", "count": 1 } } diff --git a/tests/results/test_features/general/store-autorun_subscription-002.jsonc b/tests/results/test_features/general/store-autorun_subscription-002.jsonc index e9238f2..060bc17 100644 --- a/tests/results/test_features/general/store-autorun_subscription-002.jsonc +++ b/tests/results/test_features/general/store-autorun_subscription-002.jsonc @@ -1,13 +1,17 @@ // store-autorun_subscription-002 { "_id": "e3e70682c2094cac629f6fbed82c07cd", + "_type": "StateType", "base10": { + "_type": "CountStateType", "count": 12 }, "inverse": { + "_type": "CountStateType", "count": -1 }, "straight": { + "_type": "CountStateType", "count": 2 } } diff --git a/tests/results/test_features/general/store-autorun_subscription-003.jsonc b/tests/results/test_features/general/store-autorun_subscription-003.jsonc index b02befd..61213e2 100644 --- a/tests/results/test_features/general/store-autorun_subscription-003.jsonc +++ b/tests/results/test_features/general/store-autorun_subscription-003.jsonc @@ -1,10 +1,13 @@ // store-autorun_subscription-003 { "_id": "e3e70682c2094cac629f6fbed82c07cd", + "_type": "StateType", "base10": { + "_type": "CountStateType", "count": 10 }, "inverse": { + "_type": "CountStateType", "count": 1 } } diff --git a/tests/results/test_features/general/store-autorun_subscription-004.jsonc b/tests/results/test_features/general/store-autorun_subscription-004.jsonc index 062b2b9..413019e 100644 --- a/tests/results/test_features/general/store-autorun_subscription-004.jsonc +++ b/tests/results/test_features/general/store-autorun_subscription-004.jsonc @@ -1,10 +1,13 @@ // store-autorun_subscription-004 { "_id": "e3e70682c2094cac629f6fbed82c07cd", + "_type": "StateType", "base10": { + "_type": "CountStateType", "count": 8 }, "inverse": { + "_type": "CountStateType", "count": 3 } } diff --git a/tests/results/test_features/general/store-subscription-000.jsonc b/tests/results/test_features/general/store-subscription-000.jsonc index e15a3f7..7171eee 100644 --- a/tests/results/test_features/general/store-subscription-000.jsonc +++ b/tests/results/test_features/general/store-subscription-000.jsonc @@ -1,10 +1,13 @@ // store-subscription-000 { "_id": "e3e70682c2094cac629f6fbed82c07cd", + "_type": "StateType", "base10": { + "_type": "CountStateType", "count": 11 }, "straight": { + "_type": "CountStateType", "count": 1 } } diff --git a/tests/results/test_features/general/store-subscription-001.jsonc b/tests/results/test_features/general/store-subscription-001.jsonc index 114ece6..57dbc3e 100644 --- a/tests/results/test_features/general/store-subscription-001.jsonc +++ b/tests/results/test_features/general/store-subscription-001.jsonc @@ -1,13 +1,17 @@ // store-subscription-001 { "_id": "e3e70682c2094cac629f6fbed82c07cd", + "_type": "StateType", "base10": { + "_type": "CountStateType", "count": 11 }, "inverse": { + "_type": "CountStateType", "count": 0 }, "straight": { + "_type": "CountStateType", "count": 1 } } diff --git a/tests/results/test_features/general/store-subscription-002.jsonc b/tests/results/test_features/general/store-subscription-002.jsonc index 68158e1..a061917 100644 --- a/tests/results/test_features/general/store-subscription-002.jsonc +++ b/tests/results/test_features/general/store-subscription-002.jsonc @@ -1,13 +1,17 @@ // store-subscription-002 { "_id": "e3e70682c2094cac629f6fbed82c07cd", + "_type": "StateType", "base10": { + "_type": "CountStateType", "count": 11 }, "inverse": { + "_type": "CountStateType", "count": 0 }, "straight": { + "_type": "CountStateType", "count": 1 } } diff --git a/tests/results/test_features/general/store-subscription-003.jsonc b/tests/results/test_features/general/store-subscription-003.jsonc index 5dc6abf..47ea667 100644 --- a/tests/results/test_features/general/store-subscription-003.jsonc +++ b/tests/results/test_features/general/store-subscription-003.jsonc @@ -1,13 +1,17 @@ // store-subscription-003 { "_id": "e3e70682c2094cac629f6fbed82c07cd", + "_type": "StateType", "base10": { + "_type": "CountStateType", "count": 12 }, "inverse": { + "_type": "CountStateType", "count": -1 }, "straight": { + "_type": "CountStateType", "count": 2 } } diff --git a/tests/results/test_features/general/store-subscription-004.jsonc b/tests/results/test_features/general/store-subscription-004.jsonc index a6b589c..6e1f81f 100644 --- a/tests/results/test_features/general/store-subscription-004.jsonc +++ b/tests/results/test_features/general/store-subscription-004.jsonc @@ -1,10 +1,13 @@ // store-subscription-004 { "_id": "e3e70682c2094cac629f6fbed82c07cd", + "_type": "StateType", "base10": { + "_type": "CountStateType", "count": 12 }, "inverse": { + "_type": "CountStateType", "count": -1 } } diff --git a/tests/results/test_features/general/store-subscription-005.jsonc b/tests/results/test_features/general/store-subscription-005.jsonc index 3aa1053..59af513 100644 --- a/tests/results/test_features/general/store-subscription-005.jsonc +++ b/tests/results/test_features/general/store-subscription-005.jsonc @@ -1,10 +1,13 @@ // store-subscription-005 { "_id": "e3e70682c2094cac629f6fbed82c07cd", + "_type": "StateType", "base10": { + "_type": "CountStateType", "count": 10 }, "inverse": { + "_type": "CountStateType", "count": 1 } } diff --git a/tests/results/test_features/general/store-subscription-006.jsonc b/tests/results/test_features/general/store-subscription-006.jsonc index 0bafd0d..5b0d684 100644 --- a/tests/results/test_features/general/store-subscription-006.jsonc +++ b/tests/results/test_features/general/store-subscription-006.jsonc @@ -1,10 +1,13 @@ // store-subscription-006 { "_id": "e3e70682c2094cac629f6fbed82c07cd", + "_type": "StateType", "base10": { + "_type": "CountStateType", "count": 8 }, "inverse": { + "_type": "CountStateType", "count": 3 } } diff --git a/tests/results/test_features/general/store-subscription-007.jsonc b/tests/results/test_features/general/store-subscription-007.jsonc index 20b1154..46f4bf9 100644 --- a/tests/results/test_features/general/store-subscription-007.jsonc +++ b/tests/results/test_features/general/store-subscription-007.jsonc @@ -1,10 +1,13 @@ // store-subscription-007 { "_id": "e3e70682c2094cac629f6fbed82c07cd", + "_type": "StateType", "base10": { + "_type": "CountStateType", "count": 8 }, "inverse": { + "_type": "CountStateType", "count": 3 } } diff --git a/tests/results/test_todo/todo/store-000.jsonc b/tests/results/test_todo/todo/store-000.jsonc index b9c295b..de006d7 100644 --- a/tests/results/test_todo/todo/store-000.jsonc +++ b/tests/results/test_todo/todo/store-000.jsonc @@ -1,7 +1,9 @@ // store-000 { + "_type": "ToDoState", "items": [ { + "_type": "ToDoItem", "content": "Initial Item", "id": "e3e70682c2094cac629f6fbed82c07cd", "timestamp": 1672531200.0 diff --git a/tests/results/test_todo/todo/store-001.jsonc b/tests/results/test_todo/todo/store-001.jsonc index 2b66102..20121de 100644 --- a/tests/results/test_todo/todo/store-001.jsonc +++ b/tests/results/test_todo/todo/store-001.jsonc @@ -1,12 +1,15 @@ // store-001 { + "_type": "ToDoState", "items": [ { + "_type": "ToDoItem", "content": "Initial Item", "id": "e3e70682c2094cac629f6fbed82c07cd", "timestamp": 1672531200.0 }, { + "_type": "ToDoItem", "content": "New Item", "id": "f728b4fa42485e3a0a5d2f346baa9455", "timestamp": 1672531200.0 diff --git a/tests/results/test_weakref/autorun/store-000.jsonc b/tests/results/test_weakref/autorun/store-000.jsonc index 6b03ea4..8e039a8 100644 --- a/tests/results/test_weakref/autorun/store-000.jsonc +++ b/tests/results/test_weakref/autorun/store-000.jsonc @@ -1,4 +1,5 @@ // store-000 { + "_type": "StateType", "value": 0 } diff --git a/tests/results/test_weakref/autorun/store-001.jsonc b/tests/results/test_weakref/autorun/store-001.jsonc index 0b4546b..0d1a49f 100644 --- a/tests/results/test_weakref/autorun/store-001.jsonc +++ b/tests/results/test_weakref/autorun/store-001.jsonc @@ -1,4 +1,5 @@ // store-001 { + "_type": "StateType", "value": 1 } diff --git a/tests/results/test_weakref/autorun_method/store-autorun_method_with_keep_ref-000.jsonc b/tests/results/test_weakref/autorun_method/store-autorun_method_with_keep_ref-000.jsonc index 1f54564..8ffa4c5 100644 --- a/tests/results/test_weakref/autorun_method/store-autorun_method_with_keep_ref-000.jsonc +++ b/tests/results/test_weakref/autorun_method/store-autorun_method_with_keep_ref-000.jsonc @@ -1,4 +1,5 @@ // store-autorun_method_with_keep_ref-000 { + "_type": "StateType", "value": 0 } diff --git a/tests/results/test_weakref/autorun_method/store-autorun_method_with_keep_ref-001.jsonc b/tests/results/test_weakref/autorun_method/store-autorun_method_with_keep_ref-001.jsonc index a8d8eab..20862e7 100644 --- a/tests/results/test_weakref/autorun_method/store-autorun_method_with_keep_ref-001.jsonc +++ b/tests/results/test_weakref/autorun_method/store-autorun_method_with_keep_ref-001.jsonc @@ -1,4 +1,5 @@ // store-autorun_method_with_keep_ref-001 { + "_type": "StateType", "value": 1 } diff --git a/tests/results/test_weakref/autorun_method_subscription/store-000.jsonc b/tests/results/test_weakref/autorun_method_subscription/store-000.jsonc index 6b03ea4..8e039a8 100644 --- a/tests/results/test_weakref/autorun_method_subscription/store-000.jsonc +++ b/tests/results/test_weakref/autorun_method_subscription/store-000.jsonc @@ -1,4 +1,5 @@ // store-000 { + "_type": "StateType", "value": 0 } diff --git a/tests/results/test_weakref/autorun_method_subscription/store-001.jsonc b/tests/results/test_weakref/autorun_method_subscription/store-001.jsonc index 0b4546b..0d1a49f 100644 --- a/tests/results/test_weakref/autorun_method_subscription/store-001.jsonc +++ b/tests/results/test_weakref/autorun_method_subscription/store-001.jsonc @@ -1,4 +1,5 @@ // store-001 { + "_type": "StateType", "value": 1 } diff --git a/tests/results/test_weakref/autorun_method_subscription/store-autorun_method_with_keep_ref-000.jsonc b/tests/results/test_weakref/autorun_method_subscription/store-autorun_method_with_keep_ref-000.jsonc index 1f54564..8ffa4c5 100644 --- a/tests/results/test_weakref/autorun_method_subscription/store-autorun_method_with_keep_ref-000.jsonc +++ b/tests/results/test_weakref/autorun_method_subscription/store-autorun_method_with_keep_ref-000.jsonc @@ -1,4 +1,5 @@ // store-autorun_method_with_keep_ref-000 { + "_type": "StateType", "value": 0 } diff --git a/tests/results/test_weakref/autorun_method_subscription/store-autorun_method_with_keep_ref-001.jsonc b/tests/results/test_weakref/autorun_method_subscription/store-autorun_method_with_keep_ref-001.jsonc index a8d8eab..20862e7 100644 --- a/tests/results/test_weakref/autorun_method_subscription/store-autorun_method_with_keep_ref-001.jsonc +++ b/tests/results/test_weakref/autorun_method_subscription/store-autorun_method_with_keep_ref-001.jsonc @@ -1,4 +1,5 @@ // store-autorun_method_with_keep_ref-001 { + "_type": "StateType", "value": 1 } diff --git a/tests/results/test_weakref/autorun_subscription/store-000.jsonc b/tests/results/test_weakref/autorun_subscription/store-000.jsonc index 6b03ea4..8e039a8 100644 --- a/tests/results/test_weakref/autorun_subscription/store-000.jsonc +++ b/tests/results/test_weakref/autorun_subscription/store-000.jsonc @@ -1,4 +1,5 @@ // store-000 { + "_type": "StateType", "value": 0 } diff --git a/tests/results/test_weakref/autorun_subscription/store-001.jsonc b/tests/results/test_weakref/autorun_subscription/store-001.jsonc index 0b4546b..0d1a49f 100644 --- a/tests/results/test_weakref/autorun_subscription/store-001.jsonc +++ b/tests/results/test_weakref/autorun_subscription/store-001.jsonc @@ -1,4 +1,5 @@ // store-001 { + "_type": "StateType", "value": 1 } diff --git a/tests/results/test_weakref/autorun_subscription/store-autorun_subscription-000.jsonc b/tests/results/test_weakref/autorun_subscription/store-autorun_subscription-000.jsonc index 092abc9..3d2ad18 100644 --- a/tests/results/test_weakref/autorun_subscription/store-autorun_subscription-000.jsonc +++ b/tests/results/test_weakref/autorun_subscription/store-autorun_subscription-000.jsonc @@ -1,4 +1,5 @@ // store-autorun_subscription-000 { + "_type": "StateType", "value": 0 } diff --git a/tests/results/test_weakref/autorun_subscription/store-autorun_subscription-001.jsonc b/tests/results/test_weakref/autorun_subscription/store-autorun_subscription-001.jsonc index 17753c5..ae9254a 100644 --- a/tests/results/test_weakref/autorun_subscription/store-autorun_subscription-001.jsonc +++ b/tests/results/test_weakref/autorun_subscription/store-autorun_subscription-001.jsonc @@ -1,4 +1,5 @@ // store-autorun_subscription-001 { + "_type": "StateType", "value": 1 } diff --git a/tests/results/test_weakref/event_subscription_method/store-event_subscription_method_with_keep_ref-000.jsonc b/tests/results/test_weakref/event_subscription_method/store-event_subscription_method_with_keep_ref-000.jsonc index f0eb19e..7b4aa74 100644 --- a/tests/results/test_weakref/event_subscription_method/store-event_subscription_method_with_keep_ref-000.jsonc +++ b/tests/results/test_weakref/event_subscription_method/store-event_subscription_method_with_keep_ref-000.jsonc @@ -1,4 +1,5 @@ // store-event_subscription_method_with_keep_ref-000 { + "_type": "StateType", "value": 0 } diff --git a/tests/results/test_weakref/subscription/store-000.jsonc b/tests/results/test_weakref/subscription/store-000.jsonc index b36eb2b..84fc1d9 100644 --- a/tests/results/test_weakref/subscription/store-000.jsonc +++ b/tests/results/test_weakref/subscription/store-000.jsonc @@ -1,4 +1,5 @@ // store-000 { + "_type": "StateType", "value": 1 } diff --git a/tests/results/test_weakref/subscription/store-001.jsonc b/tests/results/test_weakref/subscription/store-001.jsonc index 0b4546b..0d1a49f 100644 --- a/tests/results/test_weakref/subscription/store-001.jsonc +++ b/tests/results/test_weakref/subscription/store-001.jsonc @@ -1,4 +1,5 @@ // store-001 { + "_type": "StateType", "value": 1 } diff --git a/tests/results/test_weakref/subscription_method/store-subscription_method_with_keep_ref-000.jsonc b/tests/results/test_weakref/subscription_method/store-subscription_method_with_keep_ref-000.jsonc index 6caba56..45a5b8e 100644 --- a/tests/results/test_weakref/subscription_method/store-subscription_method_with_keep_ref-000.jsonc +++ b/tests/results/test_weakref/subscription_method/store-subscription_method_with_keep_ref-000.jsonc @@ -1,4 +1,5 @@ // store-subscription_method_with_keep_ref-000 { + "_type": "StateType", "value": 1 } diff --git a/tests/results/test_weakref/subscription_method/store-subscription_method_with_keep_ref-001.jsonc b/tests/results/test_weakref/subscription_method/store-subscription_method_with_keep_ref-001.jsonc index fee1a4d..028ea0f 100644 --- a/tests/results/test_weakref/subscription_method/store-subscription_method_with_keep_ref-001.jsonc +++ b/tests/results/test_weakref/subscription_method/store-subscription_method_with_keep_ref-001.jsonc @@ -1,4 +1,5 @@ // store-subscription_method_with_keep_ref-001 { + "_type": "StateType", "value": 1 } diff --git a/tests/test_async.py b/tests/test_async.py index 2076ae4..626db38 100644 --- a/tests/test_async.py +++ b/tests/test_async.py @@ -59,7 +59,7 @@ def reducer( StoreType = Store[StateType, Action, FinishEvent] -@pytest.fixture() +@pytest.fixture def store(event_loop: LoopThread) -> StoreType: def _create_task_with_callback( coro: Coroutine, diff --git a/tests/test_autorun.py b/tests/test_autorun.py index 1ac9042..339f0e2 100644 --- a/tests/test_autorun.py +++ b/tests/test_autorun.py @@ -69,7 +69,7 @@ def reducer( StoreType = Store[StateType, Action, FinishEvent] -@pytest.fixture() +@pytest.fixture def store() -> Generator[StoreType, None, None]: store = Store(reducer, options=CreateStoreOptions(auto_init=True)) yield store diff --git a/tests/test_features.py b/tests/test_features.py index a36d77a..0e2975e 100644 --- a/tests/test_features.py +++ b/tests/test_features.py @@ -120,7 +120,7 @@ def inverse_reducer( ] -@pytest.fixture() +@pytest.fixture def reducer() -> Reducer: return combine_reducers( state_type=StateType, @@ -131,7 +131,7 @@ def reducer() -> Reducer: ) -@pytest.fixture() +@pytest.fixture def store(reducer: Reducer) -> Store: return Store( reducer[0], diff --git a/tests/test_middleware.py b/tests/test_middleware.py index 835208b..06a1ba7 100644 --- a/tests/test_middleware.py +++ b/tests/test_middleware.py @@ -60,7 +60,7 @@ def state(self: StoreType) -> StateType | None: return self._state -@pytest.fixture() +@pytest.fixture def store() -> StoreType: return StoreType(reducer, options=CreateStoreOptions(auto_init=True)) diff --git a/tests/test_monitor_fixtures.py b/tests/test_monitor_fixtures.py index 263c0da..5876c68 100644 --- a/tests/test_monitor_fixtures.py +++ b/tests/test_monitor_fixtures.py @@ -39,7 +39,7 @@ class DummyEvent(BaseEvent): ... Action = IncrementAction | InitAction | FinishAction -@pytest.fixture() +@pytest.fixture def snapshot_prefix() -> str: return 'prefix' @@ -58,7 +58,7 @@ def reducer( return state -@pytest.fixture() +@pytest.fixture def store() -> Store: return Store( reducer, diff --git a/tests/test_performance.py b/tests/test_performance.py index 995bc0f..3c06a1d 100644 --- a/tests/test_performance.py +++ b/tests/test_performance.py @@ -51,7 +51,7 @@ def state(self: StoreType) -> StateType | None: return self._state -@pytest.fixture() +@pytest.fixture def store() -> Generator[StoreType, None, None]: store = StoreType(reducer, options=CreateStoreOptions(auto_init=True)) yield store diff --git a/tests/test_serialization.py b/tests/test_serialization.py index a8ddff8..35a9298 100644 --- a/tests/test_serialization.py +++ b/tests/test_serialization.py @@ -74,6 +74,7 @@ class State(Immutable): list_=[1, 2, 3], ), ) == { + '_type': 'State', 'integer': 1, 'floating_poing': 1.0, 'string': 'string', diff --git a/tests/test_snapshot.py b/tests/test_snapshot.py index 08cc732..e238c52 100644 --- a/tests/test_snapshot.py +++ b/tests/test_snapshot.py @@ -23,10 +23,10 @@ def test_snapshot() -> None: initial_state = StateType(value=0) store = Store( - lambda state, __: state or initial_state, + lambda state, _: state or initial_state, options=CreateStoreOptions(auto_init=True), ) - assert store.snapshot == {'value': 0} + assert store.snapshot == {'_type': 'StateType', 'value': 0} store.dispatch(FinishAction()) diff --git a/tests/test_snapshot_fixture.py b/tests/test_snapshot_fixture.py index 5a6f001..a40d35e 100644 --- a/tests/test_snapshot_fixture.py +++ b/tests/test_snapshot_fixture.py @@ -50,7 +50,7 @@ def reducer( return state -@pytest.fixture() +@pytest.fixture def store() -> Store: return Store( reducer, diff --git a/tests/test_todo.py b/tests/test_todo.py index f3e4bef..7ad1ea6 100644 --- a/tests/test_todo.py +++ b/tests/test_todo.py @@ -52,7 +52,7 @@ class CallApi(BaseEvent): parameters: object -@pytest.fixture() +@pytest.fixture def store() -> Store: # reducer: def reducer( diff --git a/tests/test_views.py b/tests/test_views.py index 289aa49..f84c7c8 100644 --- a/tests/test_views.py +++ b/tests/test_views.py @@ -62,7 +62,7 @@ def reducer( StoreType = Store[StateType, Action, FinishEvent] -@pytest.fixture() +@pytest.fixture def store() -> Generator[StoreType, None, None]: store = Store(reducer, options=CreateStoreOptions(auto_init=True)) yield store diff --git a/tests/test_weakref.py b/tests/test_weakref.py index 4b1b7b6..028e43d 100644 --- a/tests/test_weakref.py +++ b/tests/test_weakref.py @@ -91,7 +91,7 @@ def method_without_keep_ref(self: EventSubscriptionClass, _: DummyEvent) -> None pytest.fail('This should never be called') -@pytest.fixture() +@pytest.fixture def store() -> Generator[StoreType, None, None]: store = Store(reducer, options=CreateStoreOptions(auto_init=True)) # pyright: ignore [reportArgumentType] yield store