squash
This commit is contained in:
parent
6057da71f3
commit
5377a6eee3
|
@ -35,7 +35,6 @@ def test_versioned_named_routes_get(method):
|
|||
return text("OK")
|
||||
|
||||
else:
|
||||
print(func)
|
||||
raise
|
||||
|
||||
func = getattr(bp, method)
|
||||
|
@ -46,7 +45,6 @@ def test_versioned_named_routes_get(method):
|
|||
return text("OK")
|
||||
|
||||
else:
|
||||
print(func)
|
||||
raise
|
||||
|
||||
app.blueprint(bp)
|
||||
|
|
|
@ -157,12 +157,10 @@ def test_matching(path, headers, expected):
|
|||
app.blueprint(bp4)
|
||||
|
||||
app.router.finalize()
|
||||
print(app.router.static_routes)
|
||||
|
||||
request = Request(path, headers, None, "GET", None, app)
|
||||
|
||||
try:
|
||||
print(app.router.get(request=request))
|
||||
except NotFound:
|
||||
response = 404
|
||||
except Exception as e:
|
||||
|
|
|
@ -282,7 +282,6 @@ def blueprint_app():
|
|||
|
||||
|
||||
def test_blueprints_are_named_correctly(blueprint_app):
|
||||
print(f"{blueprint_app.router.name_index=}")
|
||||
first_url = blueprint_app.url_for("first.foo")
|
||||
assert first_url == "/first/foo"
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user