done
This commit is contained in:
17
lib/python3.11/site-packages/dash/testing/__init__.py
Normal file
17
lib/python3.11/site-packages/dash/testing/__init__.py
Normal file
@ -0,0 +1,17 @@
|
||||
from contextlib import contextmanager
|
||||
|
||||
from .._callback_context import context_value as _ctx
|
||||
from .._utils import AttributeDict as _AD
|
||||
|
||||
|
||||
@contextmanager
|
||||
def ignore_register_page():
|
||||
previous = _ctx.get()
|
||||
copied = _AD(previous)
|
||||
copied.ignore_register_page = True
|
||||
_ctx.set(copied)
|
||||
|
||||
try:
|
||||
yield
|
||||
finally:
|
||||
_ctx.set(previous)
|
Reference in New Issue
Block a user