We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 585d41b commit dc15e1fCopy full SHA for dc15e1f
1 file changed
docs/conf.py
@@ -17,10 +17,17 @@
17
import os
18
import sys
19
from unittest import mock
20
+from functools import wraps
21
+
22
+def state_dec(f):
23
+ @wraps(f)
24
+ def wrapper(*args, **kwargs):
25
+ return f(*args, **kwargs)
26
+ return wrapper
27
28
MOCK_MODULES = ['sqlwhat.grammar.plsql.ast', 'sqlwhat', 'sqlwhat.sct_syntax']
29
for mod_name in MOCK_MODULES:
- sys.modules[mod_name] = mock.Mock()
30
+ sys.modules[mod_name] = mock.Mock(state_dec = state_dec)
31
32
# If extensions (or modules to document with autodoc) are in another directory,
33
# add these directories to sys.path here. If the directory is relative to the
0 commit comments