reflex/tests
Masen Furer 756bf9b0f4
[REF-1885] Shard Substates when serializing to Redis (#2574)
* Move sharding internal to StateManager

Avoid leaking sharding implementation details all over the State class and
breaking the API

* WiP StateManager based sharding

* Copy the state __dict__ when serializing to avoid breaking the instance

* State tests need to pass the correct substate token for redis

* state: when getting parent_state, set top_level=False

ensure that we don't end up with a broken tree

* test_app: get tests passing with redis by passing the correct token

refactor upload tests to suck less

* test_client_storage: look up substate key

* state.py: pass static checks

* test_dynamic_routes: working with redis state shard

* Update the remaining AppHarness tests to pass {token}_{state.get_full_name()}

* test_app: pass all tokens with state suffix

* StateManagerRedis: clean up commentary
2024-02-21 01:50:25 -08:00
..
compiler [REF-889] useContext per substate (#2149) 2023-11-21 11:52:06 -08:00
components Component: translate underscore suffix for props supported by chakra (#2636) 2024-02-15 20:46:06 -08:00
middleware [REF-201] Separate on_load handler from initial hydration (#1847) 2023-11-30 12:21:15 -08:00
states RED-1052/rx.State as Base State (#2146) 2023-11-29 09:43:33 -08:00
utils rx.color to work with conditional vars (#2546) 2024-02-08 11:45:15 -08:00
__init__.py RED-1052/rx.State as Base State (#2146) 2023-11-29 09:43:33 -08:00
conftest.py [REF-201] Separate on_load handler from initial hydration (#1847) 2023-11-30 12:21:15 -08:00
test_app.py [REF-1885] Shard Substates when serializing to Redis (#2574) 2024-02-21 01:50:25 -08:00
test_base.py Rename pynecone to reflex (#1236) 2023-06-25 16:56:55 -07:00
test_config.py Added Environmental variable REFLEX_DIR (#2457) 2024-01-30 18:18:29 -08:00
test_db_config.py Rename pynecone to reflex (#1236) 2023-06-25 16:56:55 -07:00
test_event.py RED-1052/rx.State as Base State (#2146) 2023-11-29 09:43:33 -08:00
test_model.py supply default for sqlmodel PK for both DB and python to work (#1788) 2023-09-08 14:51:57 -07:00
test_prerequisites.py Skip frontend packages install if previously done (#2400) 2024-01-16 17:52:28 -08:00
test_route.py Allow underscores in routes (#1713) 2023-09-08 12:18:33 -07:00
test_state.py [REF-1885] Shard Substates when serializing to Redis (#2574) 2024-02-21 01:50:25 -08:00
test_style.py Handle component namespaces in global styles (#2630) 2024-02-15 16:03:10 -08:00
test_telemetry.py test_telemetry fails for Python Version 3.11.0rc1 (#2431) 2024-01-24 12:30:22 -08:00
test_testing.py Avoid passing props to lists and list items (#2326) 2023-12-21 15:58:45 -08:00
test_var.py fixed bug in var type for iterable types (#2617) 2024-02-20 15:02:20 -08:00