(mode)
| 337 | |
| 338 | @pytest.mark.parametrize("mode", ("r", "rb", "rt")) |
| 339 | def test_open_resource(mode): |
| 340 | app = flask.Flask(__name__) |
| 341 | |
| 342 | with app.open_resource("static/index.html", mode) as f: |
| 343 | assert "<h1>Hello World!</h1>" in str(f.read()) |
| 344 | |
| 345 | |
| 346 | @pytest.mark.parametrize("mode", ("w", "x", "a", "r+")) |
nothing calls this directly
no test coverage detected