MCPcopy
hub / github.com/plotly/dash / test_get_relative_path

Function test_get_relative_path

tests/unit/test_configs.py:153–164  ·  view source on GitHub ↗
(
    empty_environ,
    requests_pathname_prefix,
    expected,
)

Source from the content-addressed store, hash-verified

151 ],
152)
153def test_get_relative_path(
154 empty_environ,
155 requests_pathname_prefix,
156 expected,
157):
158 app = Dash(
159 "Dash",
160 requests_pathname_prefix=requests_pathname_prefix,
161 )
162 app_path = app.get_relative_path("/page2")
163 dash_path = get_relative_path("/page2")
164 assert app_path == dash_path == expected
165
166
167@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 3

get_relative_pathMethod · 0.95
DashClass · 0.90
get_relative_pathFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…