@@ -181,7 +181,17 @@ def test_yadg_preset_roundtrip_uts(datadir):
181
181
)
182
182
def test_yadg_extract_with_metadata (filetype , infile , datadir ):
183
183
os .chdir (datadir )
184
- command = ["yadg" , "extract" , filetype , infile , "test.nc" , "--locale" , "en_GB" ]
184
+ command = [
185
+ "yadg" ,
186
+ "extract" ,
187
+ filetype ,
188
+ infile ,
189
+ "test.nc" ,
190
+ "--locale" ,
191
+ "en_GB" ,
192
+ "--timezone" ,
193
+ "Europe/Berlin" ,
194
+ ]
185
195
subprocess .run (command , check = True )
186
196
assert os .path .exists ("test.nc" )
187
197
ret = open_datatree ("test.nc" , engine = "h5netcdf" )
@@ -201,7 +211,17 @@ def test_yadg_extract_with_metadata(filetype, infile, datadir):
201
211
)
202
212
def test_yadg_extract_meta_only (filetype , infile , flag , datadir ):
203
213
os .chdir (datadir )
204
- command = ["yadg" , "extract" , filetype , infile , flag , "--locale" , "en_GB" ]
214
+ command = [
215
+ "yadg" ,
216
+ "extract" ,
217
+ filetype ,
218
+ infile ,
219
+ flag ,
220
+ "--locale" ,
221
+ "en_GB" ,
222
+ "--timezone" ,
223
+ "Europe/Berlin" ,
224
+ ]
205
225
subprocess .run (command , check = True )
206
226
outfile = infile .split ("." )[0 ] + ".json"
207
227
assert os .path .exists (outfile )
@@ -238,7 +258,17 @@ def test_yadg_preset_dataschema_compat(datadir):
238
258
)
239
259
def test_yadg_extract_locale (filetype , infile , locale , datadir ):
240
260
os .chdir (datadir )
241
- command = ["yadg" , "extract" , "--locale" , locale , filetype , infile , "test.nc" ]
261
+ command = [
262
+ "yadg" ,
263
+ "extract" ,
264
+ "--locale" ,
265
+ locale ,
266
+ filetype ,
267
+ infile ,
268
+ "test.nc" ,
269
+ "--timezone" ,
270
+ "Europe/Berlin" ,
271
+ ]
242
272
subprocess .run (command , check = True )
243
273
assert os .path .exists ("test.nc" )
244
274
ret = open_datatree ("test.nc" , engine = "h5netcdf" )
0 commit comments