(app)
| 26 | |
| 27 | |
| 28 | def test_method_based_view(app): |
| 29 | class Index(flask.views.MethodView): |
| 30 | def get(self): |
| 31 | return "GET" |
| 32 | |
| 33 | def post(self): |
| 34 | return "POST" |
| 35 | |
| 36 | app.add_url_rule("/", view_func=Index.as_view("index")) |
| 37 | |
| 38 | common_test(app) |
| 39 | |
| 40 | |
| 41 | def test_view_patching(app): |
nothing calls this directly
no test coverage detected