Home / Function/ test_explicit_instance_paths() — flask Function Reference

test_explicit_instance_paths() — flask Function Reference

Architecture documentation for the test_explicit_instance_paths() function in test_instance_config.py from the flask codebase.

Entity Profile

Dependency Diagram

graph TD
  c93412dc_d72d_cbad_3759_b3fab3672e73["test_explicit_instance_paths()"]
  27c06adb_1aab_74d2_a3c7_31e63b6a6a6f["test_instance_config.py"]
  c93412dc_d72d_cbad_3759_b3fab3672e73 -->|defined in| 27c06adb_1aab_74d2_a3c7_31e63b6a6a6f
  style c93412dc_d72d_cbad_3759_b3fab3672e73 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_instance_config.py lines 8–13

def test_explicit_instance_paths(modules_tmp_path):
    with pytest.raises(ValueError, match=".*must be absolute"):
        flask.Flask(__name__, instance_path="instance")

    app = flask.Flask(__name__, instance_path=os.fspath(modules_tmp_path))
    assert app.instance_path == os.fspath(modules_tmp_path)

Subdomains

Frequently Asked Questions

What does test_explicit_instance_paths() do?
test_explicit_instance_paths() is a function in the flask codebase, defined in tests/test_instance_config.py.
Where is test_explicit_instance_paths() defined?
test_explicit_instance_paths() is defined in tests/test_instance_config.py at line 8.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free