()
| 325 | |
| 326 | |
| 327 | def test_explorer_code_gridded_dataarray(): |
| 328 | da = ds_air_temperature['air'] |
| 329 | explorer = hvplot.explorer(da, x='lon', y='lat', kind='image') |
| 330 | code = explorer.code |
| 331 | assert code == dedent("""\ |
| 332 | da.hvplot( |
| 333 | colorbar=True, |
| 334 | groupby=['time'], |
| 335 | kind='image', |
| 336 | x='lon', |
| 337 | y='lat', |
| 338 | legend='bottom_right', |
| 339 | widget_location='bottom', |
| 340 | )""") |
| 341 | |
| 342 | assert explorer._code_pane.object == dedent("""\ |
| 343 | ```python |
| 344 | da.hvplot( |
| 345 | colorbar=True, |
| 346 | groupby=['time'], |
| 347 | kind='image', |
| 348 | x='lon', |
| 349 | y='lat', |
| 350 | legend='bottom_right', |
| 351 | widget_location='bottom', |
| 352 | ) |
| 353 | ```""") |
| 354 | |
| 355 | |
| 356 | def test_explorer_code_opts(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…