Test that resources without attributes still work as strings
()
| 185 | |
| 186 | |
| 187 | def 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 | |
| 200 | def test_local_resources_with_attributes(mocker): |
nothing calls this directly
no test coverage detected
searching dependent graphs…