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

Function test_resources_without_attributes

tests/unit/test_resources.py:187–197  ·  view source on GitHub ↗

Test that resources without attributes still work as strings

()

Source from the content-addressed store, hash-verified

185
186
187def test_resources_without_attributes():
188 """Test that resources without attributes still work as strings"""
189 app = dash.Dash(__name__)
190
191 resources = app._collect_and_register_resources(
192 [
193 {"external_url": "https://example.com/script.js", "external_only": True},
194 ]
195 )
196
197 assert resources == ["https://example.com/script.js"]
198
199
200def test_local_resources_with_attributes(mocker):

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…