I want to do unit tests on the callbacks in my app. I’m using the new pages
feature to create a multi-page app.
When I run pytest
, I am seeing the following error:
D:\VENVS\8_dashboard_modbus_prediction_system-9lW2-ywX\lib\site-packages\dash\_pages.py:253: in register_page
_validate.validate_use_pages(CONFIG)
D:\VENVS\8_dashboard_modbus_prediction_system-9lW2-ywX\lib\site-packages\dash\_validate.py:465: in validate_use_pages
raise Exception("`dash.register_page()` must be called after app instantiation")
E Exception: `dash.register_page()` must be called after app instantiation
It seems to be something others are experiencing and also discussed in the release post..
I just wanted to raise this issue here also to see if others have had any luck solving this problem. Given that these are two recent features, I understand that there may be issues getting them to work together.