Skip to content

Commit ee1ddea

Browse files
committed
Reset hooks dist on cleanup
1 parent d26c9d3 commit ee1ddea

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

dash/_hooks.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ def __init__(self) -> None:
3838
"routes": [],
3939
"error": [],
4040
"callback": [],
41-
"script": [],
42-
"stylesheet": [],
4341
"index": [],
4442
}
4543
self._js_dist = []

tests/integration/test_hooks.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ def hook_cleanup():
1313
hooks._ns["route"] = []
1414
hooks._ns["error"] = []
1515
hooks._ns["callback"] = []
16+
hooks._ns["index"] = []
17+
hooks._css_dist = []
18+
hooks._js_dist = []
1619

1720

1821
def test_hook001_layout(hook_cleanup, dash_duo):

0 commit comments

Comments
 (0)