We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 509faa9 commit 09d0d56Copy full SHA for 09d0d56
tests/test_storage.py
@@ -315,3 +315,23 @@ def f(v):
315
316
screen.open('/')
317
screen.assert_py_logger('ERROR', 'app.storage.user can only be used within a UI context')
318
+
319
320
+def test_client_storage_holds_non_serializable_objects(screen: Screen):
321
+ @ui.page('/')
322
+ def page():
323
+ ui.button('Update storage', on_click=lambda: app.storage.client.update(x=len))
324
325
+ screen.open('/')
326
+ screen.click('Update storage')
327
+ screen.wait(0.5)
328
329
330
+def test_tab_storage_holds_non_serializable_objects(screen: Screen):
331
332
333
+ ui.button('Update storage', on_click=lambda: app.storage.tab.update(x=len))
334
335
336
337
0 commit comments