(mode)
| 360 | |
| 361 | @pytest.mark.parametrize("mode", ("r", "rb", "rt")) |
| 362 | def test_open_resource(mode): |
| 363 | app = flask.Flask(__name__) |
| 364 | |
| 365 | with app.open_resource("static/index.html", mode) as f: |
| 366 | assert "<h1>Hello World!</h1>" in str(f.read()) |
| 367 | |
| 368 | |
| 369 | @pytest.mark.parametrize("mode", ("w", "x", "a", "r+")) |
nothing calls this directly
no test coverage detected