You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if name in app.blueprints:
bp_desc = "this" if app.blueprints[name] is self else "a different"
existing_at = f" '{name}'" if self_name != name else ""
> raise ValueError(
f"The name '{self_name}' is already registered for"
f" {bp_desc} blueprint{existing_at}. Use 'name=' to"
f" provide a unique name."
)
E ValueError: The name 'user' is already registered for a different blueprint. Use 'name=' to provide a unique name.
/opt/hostedtoolcache/Python/3.10.12/x64/lib/python3.10/site-packages/flask/blueprints.py:310: ValueError
=========================== short test summary info ============================
ERROR tests/test_views.py::test_registration - ValueError: The name 'user' is already registered for a different blueprint. Use 'name=' to provide a unique name.
========================== 1 passed, 1 error in 0.27s ==========================
we should know how the flask test client deals with request and application context and why it is trying to register a registered blueprint.
The text was updated successfully, but these errors were encountered:
Agent-Hellboy
changed the title
Improve code covergae
Improve code coverage and fix test
May 24, 2023
the error we are getting
we should know how the flask test client deals with request and application context and why it is trying to register a registered blueprint.
The text was updated successfully, but these errors were encountered: