MCPcopy Index your code
hub / github.com/plotly/dash / test_strip_relative_path

Function test_strip_relative_path

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

Source from the content-addressed store, hash-verified

172 ],
173)
174def test_strip_relative_path(
175 empty_environ,
176 requests_pathname_prefix,
177 expected,
178):
179 app = Dash(
180 "Dash",
181 requests_pathname_prefix=requests_pathname_prefix,
182 )
183 app_path = app.strip_relative_path("/app/page2")
184 dash_path = strip_relative_path("/app/page2")
185 assert app_path == dash_path == expected
186
187
188def test_get_combined_config_dev_tools_ui(empty_environ):

Callers

nothing calls this directly

Calls 4

strip_relative_pathMethod · 0.95
DashClass · 0.90
strip_relative_pathFunction · 0.90
app_strip_relative_pathFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…