()
| 50 | |
| 51 | |
| 52 | def test_keep_attrs() -> None: |
| 53 | with pytest.raises(ValueError): |
| 54 | xarray.set_options(keep_attrs="invalid_str") |
| 55 | with xarray.set_options(keep_attrs=True): |
| 56 | assert OPTIONS["keep_attrs"] |
| 57 | with xarray.set_options(keep_attrs=False): |
| 58 | assert not OPTIONS["keep_attrs"] |
| 59 | with xarray.set_options(keep_attrs="default"): |
| 60 | assert _get_keep_attrs(default=True) |
| 61 | assert not _get_keep_attrs(default=False) |
| 62 | |
| 63 | |
| 64 | def test_nested_options() -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…