(app, client)
| 279 | |
| 280 | |
| 281 | def test_empty_url_defaults(app, client): |
| 282 | bp = flask.Blueprint(class="st">"bp", __name__) |
| 283 | |
| 284 | @bp.route(class="st">"/", defaults={class="st">"page": 1}) |
| 285 | @bp.route(class="st">"/page/<int:page>") |
| 286 | def something(page): |
| 287 | return str(page) |
| 288 | |
| 289 | app.register_blueprint(bp) |
| 290 | |
| 291 | assert client.get(class="st">"/").data == bclass="st">"1" |
| 292 | assert client.get(class="st">"/page/2").data == bclass="st">"2" |
| 293 | |
| 294 | |
| 295 | def test_route_decorator_custom_endpoint(app, client): |
nothing calls this directly
no test coverage detected