We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0415eae commit cb0ba63Copy full SHA for cb0ba63
xray/test/test_backends.py
@@ -512,6 +512,13 @@ def test_open_encodings(self):
512
if k in expected['time'].encoding)
513
self.assertDictEqual(actual_encoding, expected['time'].encoding)
514
515
+ def test_dump_encodings(self):
516
+ # regression test for #709
517
+ ds = Dataset({'x': ('y', np.arange(10.0))})
518
+ kwargs = dict(encoding={'x': {'zlib': True}})
519
+ with self.roundtrip(ds, save_kwargs=kwargs) as actual:
520
+ self.assertTrue(actual.x.encoding['zlib'])
521
+
522
def test_dump_and_open_encodings(self):
523
# Create a netCDF file with explicit time units
524
# and make sure it makes it into the encodings
0 commit comments