You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When i try to acces app.storage.user in my testcode It throws an error. Even though I added the storage secret inside UI.run and my testscode by using screen.ui_run_kwargs['storage_secret'] = "123".
raise RuntimeError('app.storage.user needs a storage_secret passed in ui.run()')
I guess you're trying to access the user storage from within the pytest thread, which doesn't work.
We usually test for UI element that depend on stored values. Alternatively you can read the storage files like we do in test_storage.py: https://github.com/zauberzeug/nicegui/blob/main/tests/test_storage.py
Description
When i try to acces app.storage.user in my testcode It throws an error. Even though I added the storage secret inside UI.run and my testscode by using
screen.ui_run_kwargs['storage_secret'] = "123"
.raise RuntimeError('app.storage.user needs a storage_secret passed in ui.run()')
gui.py
TrainingTests.py
The text was updated successfully, but these errors were encountered: