MCPcopy
hub / github.com/plotly/dash / test_rdps002_session_reload

Function test_rdps002_session_reload

tests/integration/renderer/test_persistence.py:146–158  ·  view source on GitHub ↗
(dash_duo)

Source from the content-addressed store, hash-verified

144
145
146def test_rdps002_session_reload(dash_duo):
147 app = reloadable_app(persistence_type="session")
148 dash_duo.start_server(app)
149 check_table_names(dash_duo, ["a", "b"])
150 rename_and_hide(dash_duo)
151 check_table_names(dash_duo, [NEW_NAME])
152
153 dash_duo.wait_for_page()
154 # callback gets persisted values, not the values provided with the layout
155 dash_duo.wait_for_text_to_equal(
156 "#out", "names: [{}, b]; hidden: [c1]".format(NEW_NAME)
157 )
158 check_table_names(dash_duo, [NEW_NAME])
159
160
161def test_rdps003_memory_reload(dash_duo):

Callers

nothing calls this directly

Calls 7

reloadable_appFunction · 0.85
check_table_namesFunction · 0.85
rename_and_hideFunction · 0.85
wait_for_pageMethod · 0.80
start_serverMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…