MCPcopy Create free account
hub / github.com/plotly/dash / test_asset_url

Function test_asset_url

tests/unit/test_configs.py:127–143  ·  view source on GitHub ↗
(
    empty_environ,
    requests_pathname_prefix,
    assets_external_path,
    assets_url_path,
    expected,
)

Source from the content-addressed store, hash-verified

125 ],
126)
127def test_asset_url(
128 empty_environ,
129 requests_pathname_prefix,
130 assets_external_path,
131 assets_url_path,
132 expected,
133):
134 app = Dash(
135 "Dash",
136 requests_pathname_prefix=requests_pathname_prefix,
137 assets_external_path=assets_external_path,
138 assets_url_path=assets_url_path,
139 )
140
141 app_path = app.get_asset_url("reset.css")
142 dash_path = get_asset_url("reset.css")
143 assert app_path == dash_path == expected
144
145
146@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 3

get_asset_urlMethod · 0.95
DashClass · 0.90
get_asset_urlFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…