(app, client)
| 1669 | |
| 1670 | |
| 1671 | def test_no_setup_after_first_request(app, client): |
| 1672 | app.debug = True |
| 1673 | |
| 1674 | @app.route("/") |
| 1675 | def index(): |
| 1676 | return "Awesome" |
| 1677 | |
| 1678 | assert client.get("/").data == b"Awesome" |
| 1679 | |
| 1680 | with pytest.raises(AssertionError) as exc_info: |
| 1681 | app.add_url_rule("/foo", endpoint="late") |
| 1682 | |
| 1683 | assert "setup method 'add_url_rule'" in str(exc_info.value) |
| 1684 | |
| 1685 | |
| 1686 | def test_routing_redirect_debugging(monkeypatch, app, client): |
nothing calls this directly
no test coverage detected