(self, **kwargs)
| 6645 | class TestPydapOnline(TestPydap): |
| 6646 | @contextlib.contextmanager |
| 6647 | def create_dap2_datasets(self, **kwargs): |
| 6648 | # in pydap 3.5.0, urls defaults to dap2. |
| 6649 | url = "http://test.opendap.org/opendap/data/nc/bears.nc" |
| 6650 | actual = open_dataset(url, engine="pydap", **kwargs) |
| 6651 | # pydap <3.5.6 converts to unicode dtype=|U. Not what |
| 6652 | # xarray expects. Thus force to bytes dtype. pydap >=3.5.6 |
| 6653 | # does not convert to unicode. https://github.com/pydap/pydap/issues/510 |
| 6654 | actual["bears"].values = actual["bears"].values.astype("S") |
| 6655 | with open_example_dataset("bears.nc") as expected: |
| 6656 | yield actual, expected |
| 6657 | |
| 6658 | def output_grid_deprecation_warning_dap2dataset(self): |
| 6659 | with pytest.warns(FutureWarning, match="`output_grid` is deprecated"): |
no test coverage detected