MCPcopy Create free account
hub / github.com/pallets/flask / test_explicit_instance_paths

Function test_explicit_instance_paths

tests/test_instance_config.py:8–13  ·  view source on GitHub ↗
(modules_tmp_path)

Source from the content-addressed store, hash-verified

6
7
8def test_explicit_instance_paths(modules_tmp_path):
9 with pytest.raises(ValueError, match=".*must be absolute"):
10 flask.Flask(__name__, instance_path="instance")
11
12 app = flask.Flask(__name__, instance_path=os.fspath(modules_tmp_path))
13 assert app.instance_path == os.fspath(modules_tmp_path)
14
15
16def test_uninstalled_module_paths(modules_tmp_path, purge_module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected