forked from orbit-oss/flask
require a non-empty name for blueprints
This commit is contained in:
parent
7ee9ceb71e
commit
b8b410014d
3 changed files with 10 additions and 0 deletions
|
|
@ -256,6 +256,11 @@ def test_dotted_name_not_allowed(app, client):
|
|||
flask.Blueprint("app.ui", __name__)
|
||||
|
||||
|
||||
def test_empty_name_not_allowed(app, client):
|
||||
with pytest.raises(ValueError):
|
||||
flask.Blueprint("", __name__)
|
||||
|
||||
|
||||
def test_dotted_names_from_app(app, client):
|
||||
test = flask.Blueprint("test", __name__)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue