Skip to content

Commit 026de3f

Browse files
committed
Clear page registry after long callback tests.
1 parent 43cad26 commit 026de3f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/integration/long_callback/utils.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ def setup_long_callback_app(manager_name, app_name):
113113
os.environ.pop("CELERY_BROKER")
114114
os.environ.pop("CELERY_BACKEND")
115115
kill(worker.pid)
116+
from dash import page_registry
117+
118+
page_registry.clear()
116119

117120
elif manager_name == "diskcache":
118121
os.environ["LONG_CALLBACK_MANAGER"] = "diskcache"
@@ -133,3 +136,6 @@ def setup_long_callback_app(manager_name, app_name):
133136
shutil.rmtree(cache_directory, ignore_errors=True)
134137
os.environ.pop("LONG_CALLBACK_MANAGER")
135138
os.environ.pop("DISKCACHE_DIR")
139+
from dash import page_registry
140+
141+
page_registry.clear()

0 commit comments

Comments
 (0)