(mode)
| 345 | |
| 346 | @pytest.mark.parametrize("mode", ("w", "x", "a", "r+")) |
| 347 | def test_open_resource_exceptions(mode): |
| 348 | app = flask.Flask(__name__) |
| 349 | |
| 350 | with pytest.raises(ValueError): |
| 351 | app.open_resource("static/index.html", mode) |
| 352 | |
| 353 | |
| 354 | @pytest.mark.parametrize("encoding", ("utf-8", "utf-16-le")) |
nothing calls this directly
no test coverage detected