(app, client)
| 1827 | |
| 1828 | |
| 1829 | def test_multi_route_class_views(app, client): |
| 1830 | class View: |
| 1831 | def __init__(self, app): |
| 1832 | app.add_url_rule("/", "index", self.index) |
| 1833 | app.add_url_rule("/<test>/", "index", self.index) |
| 1834 | |
| 1835 | def index(self, test="a"): |
| 1836 | return test |
| 1837 | |
| 1838 | _ = View(app) |
| 1839 | rv = client.open("/") |
| 1840 | assert rv.data == b"a" |
| 1841 | rv = client.open("/b/") |
| 1842 | assert rv.data == b"b" |
| 1843 | |
| 1844 | |
| 1845 | def test_run_defaults(monkeypatch, app): |