<p dir="auto">it woul be great if it would be possible to register a blueprint inside of an other blueprint<br>
to increase modularity</p>
<p dir="auto">Hi All,<br>
I am working on a Flask project and suddenly my unit tests start failing on the latest flask version <code class="notranslate">2.2.1</code><br>
Got following error while running <a href="https://pypi.org/project/tox/" rel="nofollow">tox</a> command</p>
<blockquote>
<p dir="auto">/usr/lib/python3.8/doctest.py:939: in find<br>
self._find(tests, obj, name, module, source_lines, globs, {})<br>
.tox/tests/lib/python3.8/site-packages/_pytest/doctest.py:533: in _find<br>
super()._find(  # type:ignore[misc]<br>
/usr/lib/python3.8/doctest.py:998: in _find<br>
if ((inspect.isroutine(inspect.unwrap(val))<br>
.tox/tests/lib/python3.8/site-packages/_pytest/doctest.py:475: in _mock_aware_unwrap<br>
return real_unwrap(func, stop=_is_mocked)<br>
/usr/lib/python3.8/inspect.py:520: in unwrap<br>
while _is_wrapper(func):<br>
/usr/lib/python3.8/inspect.py:514: in _is_wrapper<br>
return hasattr(f, '<strong>wrapped</strong>') and not stop(f)<br>
.tox/tests/lib/python3.8/site-packages/werkzeug/local.py:316: in <strong>get</strong><br>
obj = instance._get_current_object()  # type: ignore[misc]<br>
.tox/tests/lib/python3.8/site-packages/werkzeug/local.py:509: in _get_current_object<br>
raise RuntimeError(unbound_message) from None<br>
E   RuntimeError: Working outside of request context.<br>
E<br>
E   This typically means that you attempted to use functionality that needed<br>
E   an active HTTP request. Consult the documentation on testing for<br>
E   information about how to avoid this problem.</p>
</blockquote>
<p dir="auto">When I changed my flask version back to <code class="notranslate">2.1.3</code> it started working again.</p>