reflex/tests/integration
Masen Furer 736b2a6ea9
Handle rx.State subclasses defined in function (#4129)
* Handle rx.State subclasses defined in function

* create a new container module: `reflex.istate.dynamic` to save references to
  dynamically generated substates.
* for substates with `<locals>` in the name, copy these to the container module
  and update the name to avoid duplication.
* add test for "poor man" ComponentState

Fix #4128

* test_state: disable local def handling for dupe-detection test

* Track the original module and name for type hint evaluation

Also use the original name when checking for the "mangled name" pattern when
doing undeclared Var assignment checking.
2024-10-11 16:51:10 -07:00
..
init-test reorganize all tests in a single top folder (#3981) 2024-09-26 01:22:52 +02:00
shared reorganize all tests in a single top folder (#3981) 2024-09-26 01:22:52 +02:00
__init__.py reorganize all tests in a single top folder (#3981) 2024-09-26 01:22:52 +02:00
conftest.py reorganize all tests in a single top folder (#3981) 2024-09-26 01:22:52 +02:00
test_background_task.py reorganize all tests in a single top folder (#3981) 2024-09-26 01:22:52 +02:00
test_call_script.py [ENG-3870] rx.call_script with f-string var produces incorrect code (#4039) 2024-10-03 14:18:53 -07:00
test_client_storage.py reorganize all tests in a single top folder (#3981) 2024-09-26 01:22:52 +02:00
test_component_state.py Handle rx.State subclasses defined in function (#4129) 2024-10-11 16:51:10 -07:00
test_computed_vars.py reorganize all tests in a single top folder (#3981) 2024-09-26 01:22:52 +02:00
test_connection_banner.py reorganize all tests in a single top folder (#3981) 2024-09-26 01:22:52 +02:00
test_deploy_url.py reorganize all tests in a single top folder (#3981) 2024-09-26 01:22:52 +02:00
test_dynamic_components.py add of_type to _evaluate (#4051) 2024-10-03 13:01:19 -07:00
test_dynamic_routes.py test_dynamic_routes: log on_loads and poll for 60 seconds on order (#4089) 2024-10-08 09:14:35 -07:00
test_event_actions.py reorganize all tests in a single top folder (#3981) 2024-09-26 01:22:52 +02:00
test_event_chain.py reorganize all tests in a single top folder (#3981) 2024-09-26 01:22:52 +02:00
test_exception_handlers.py reorganize all tests in a single top folder (#3981) 2024-09-26 01:22:52 +02:00
test_form_submit.py reorganize all tests in a single top folder (#3981) 2024-09-26 01:22:52 +02:00
test_input.py reorganize all tests in a single top folder (#3981) 2024-09-26 01:22:52 +02:00
test_large_state.py reorganize all tests in a single top folder (#3981) 2024-09-26 01:22:52 +02:00
test_lifespan.py reorganize all tests in a single top folder (#3981) 2024-09-26 01:22:52 +02:00
test_login_flow.py reorganize all tests in a single top folder (#3981) 2024-09-26 01:22:52 +02:00
test_media.py reorganize all tests in a single top folder (#3981) 2024-09-26 01:22:52 +02:00
test_navigation.py reorganize all tests in a single top folder (#3981) 2024-09-26 01:22:52 +02:00
test_server_side_event.py reorganize all tests in a single top folder (#3981) 2024-09-26 01:22:52 +02:00
test_shared_state.py reorganize all tests in a single top folder (#3981) 2024-09-26 01:22:52 +02:00
test_state_inheritance.py reorganize all tests in a single top folder (#3981) 2024-09-26 01:22:52 +02:00
test_table.py reorganize all tests in a single top folder (#3981) 2024-09-26 01:22:52 +02:00
test_tailwind.py reorganize all tests in a single top folder (#3981) 2024-09-26 01:22:52 +02:00
test_upload.py reorganize all tests in a single top folder (#3981) 2024-09-26 01:22:52 +02:00
test_urls.py use pathlib as much as possible (#3967) 2024-10-03 17:50:39 +02:00
test_var_operations.py remove format_state and override behavior for bare (#3979) 2024-09-26 16:00:28 -07:00
utils.py reorganize all tests in a single top folder (#3981) 2024-09-26 01:22:52 +02:00