reflex/tests/integration
Masen Furer 5c0518053d
Get default for backend var defined in mixin (#4060)
* Get default for backend var defined in mixin

If the backend var is defined in a mixin class, it won't appear in
`cls.__dict__`, but the value is still retrievable via `getattr` on `cls`.
Prefer to use the actual defined default before using
`Var.get_default_value()`.

If `Var.get_default_value()` fails, set the default to `None` such that the
backend var still gets recognized as a backend var when it is used on `self`.

----

Update test_component_state to include backend vars

Extra coverage for backend vars with and without defaults, defined in a
ComponentState/mixin class.

* fix integration test
2024-10-07 09:33:44 -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 Get default for backend var defined in mixin (#4060) 2024-10-07 09:33:44 -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 reorganize all tests in a single top folder (#3981) 2024-09-26 01:22:52 +02: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