File tree Expand file tree Collapse file tree 1 file changed +12
-32
lines changed
Expand file tree Collapse file tree 1 file changed +12
-32
lines changed Original file line number Diff line number Diff line change @@ -93,6 +93,14 @@ def test_it_raises_if_config_is_not_object(self):
9393 normalize_config (file_obj )
9494
9595 def test_normalize_sequence (self ):
96+ data_var_spec = {
97+ "dims" : ("time" , "y" , "x" ),
98+ "encoding" : {
99+ "dtype" : "float32" ,
100+ "chunks" : (1 , 20 , 30 ),
101+ "fill_value" : None ,
102+ },
103+ }
96104 configs = (
97105 {
98106 "version" : 1 ,
@@ -129,22 +137,8 @@ def test_normalize_sequence(self):
129137 },
130138 {
131139 "variables" : {
132- "chl" : {
133- "dims" : ("time" , "y" , "x" ),
134- "encoding" : {
135- "dtype" : "float32" ,
136- "chunks" : (1 , 20 , 30 ),
137- "fill_value" : None ,
138- },
139- },
140- "tsm" : {
141- "dims" : ("time" , "y" , "x" ),
142- "encoding" : {
143- "dtype" : "float32" ,
144- "chunks" : (1 , 20 , 30 ),
145- "fill_value" : None ,
146- },
147- },
140+ "chl" : data_var_spec ,
141+ "tsm" : data_var_spec ,
148142 }
149143 },
150144 )
@@ -170,22 +164,8 @@ def test_normalize_sequence(self):
170164 "dims" : "time" ,
171165 "encoding" : {"dtype" : "uint64" },
172166 },
173- "chl" : {
174- "dims" : ("time" , "y" , "x" ),
175- "encoding" : {
176- "dtype" : "float32" ,
177- "chunks" : (1 , 20 , 30 ),
178- "fill_value" : None ,
179- },
180- },
181- "tsm" : {
182- "dims" : ("time" , "y" , "x" ),
183- "encoding" : {
184- "dtype" : "float32" ,
185- "chunks" : (1 , 20 , 30 ),
186- "fill_value" : None ,
187- },
188- },
167+ "chl" : data_var_spec ,
168+ "tsm" : data_var_spec ,
189169 },
190170 },
191171 normalize_config (configs ),
You can’t perform that action at this time.
0 commit comments