reflex/tests
Masen Furer f6a7eed359
Fix AppHarness tests (#1987)
* test_client_storage: remove race conditions for cookie assignment

Poll for default timeout for cookies to appear in the controlled browser.

* Remove use of deprecated get_token and get_sid in core

Both reflex.app and reflex.state were still using deprecated methods, which
were throwing unsolvable warnings for end users.

* Remove deprecated router functions from integration tests

Mostly removing custom "token" var and replacing with
router.session.client_token.

Also replacing `get_query_params` and `get_current_page` usage as well.

* fix upload tests

Cannot pass substate as main app state, since it blocks us from accessing
"inherited vars"

* state: do NOT reset `router` to default

When calling `.reset` to reset state vars, do NOT reset the router data, as
that could mess up internal event processing.
2023-10-18 01:46:13 +02:00
..
compiler Add head components to app (#1868) 2023-09-25 16:53:15 -07:00
components Var field cleanup (#1943) 2023-10-13 14:53:55 -07:00
middleware code cleanup (split constants into a folder) (#1866) 2023-09-28 17:27:20 -07:00
states Fix AppHarness tests (#1987) 2023-10-18 01:46:13 +02:00
utils fix serialization as a whole for list/dict/Base containing custom items to serialize (#1984) 2023-10-17 10:44:54 -07:00
__init__.py Add basic unit tests (#7) 2022-11-20 14:34:25 -08:00
conftest.py rx.background and StateManager.modify_state provides safe exclusive access to state (#1676) 2023-09-21 11:42:11 -07:00
test_app.py Fix AppHarness tests (#1987) 2023-10-18 01:46:13 +02:00
test_base.py Rename pynecone to reflex (#1236) 2023-06-25 16:56:55 -07:00
test_config.py [REF-843] Automatically update api_url and deploy_url (#1954) 2023-10-13 12:59:19 -07:00
test_db_config.py Rename pynecone to reflex (#1236) 2023-06-25 16:56:55 -07:00
test_event.py format: event arg values use backticks (#1926) 2023-10-17 10:42:35 -07: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 Add serializers for different var types (#1816) 2023-09-15 17:19:26 -07:00
test_route.py Allow underscores in routes (#1713) 2023-09-08 12:18:33 -07:00
test_state.py Fix AppHarness tests (#1987) 2023-10-18 01:46:13 +02:00
test_style.py Rename pynecone to reflex (#1236) 2023-06-25 16:56:55 -07:00
test_telemetry.py Disable metrics in CI (#1822) 2023-09-15 18:15:25 -07:00
test_testing.py Automatic Install FNM and Node for Windows: (#1566) 2023-08-17 11:23:09 -07:00
test_var.py Var field cleanup (#1943) 2023-10-13 14:53:55 -07:00