This commit is contained in:
Adam Hopkins 2021-02-15 13:54:08 +02:00
parent 6057da71f3
commit 5377a6eee3
3 changed files with 0 additions and 5 deletions

View File

@ -35,7 +35,6 @@ def test_versioned_named_routes_get(method):
return text("OK") return text("OK")
else: else:
print(func)
raise raise
func = getattr(bp, method) func = getattr(bp, method)
@ -46,7 +45,6 @@ def test_versioned_named_routes_get(method):
return text("OK") return text("OK")
else: else:
print(func)
raise raise
app.blueprint(bp) app.blueprint(bp)

View File

@ -157,12 +157,10 @@ def test_matching(path, headers, expected):
app.blueprint(bp4) app.blueprint(bp4)
app.router.finalize() app.router.finalize()
print(app.router.static_routes)
request = Request(path, headers, None, "GET", None, app) request = Request(path, headers, None, "GET", None, app)
try: try:
print(app.router.get(request=request))
except NotFound: except NotFound:
response = 404 response = 404
except Exception as e: except Exception as e:

View File

@ -282,7 +282,6 @@ def blueprint_app():
def test_blueprints_are_named_correctly(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") first_url = blueprint_app.url_for("first.foo")
assert first_url == "/first/foo" assert first_url == "/first/foo"