Skip to content

Commit 81f7261

Browse files
committed
ruff checks fix
1 parent 31bdb6c commit 81f7261

1 file changed

Lines changed: 14 additions & 5 deletions

File tree

deep_code/tests/utils/test_dataset_stac_generator.py

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,8 @@ def test_update_product_base_catalog(self):
156156
}
157157
],
158158
}
159-
import tempfile, json as _json
159+
import tempfile
160+
import json as _json
160161

161162
with tempfile.NamedTemporaryFile(
162163
mode="w", suffix=".json", delete=False
@@ -194,7 +195,9 @@ def test_update_variable_base_catalog(self):
194195
}
195196
],
196197
}
197-
import tempfile, json as _json, os
198+
import tempfile
199+
import json as _json
200+
import os
198201

199202
with tempfile.NamedTemporaryFile(
200203
mode="w", suffix=".json", delete=False
@@ -294,7 +297,9 @@ def test_build_project_collection_custom_project(self, mock_open_ds):
294297

295298
def test_update_project_base_catalog(self):
296299
"""Child link for the project is appended to the projects base catalog."""
297-
import json as _json, os, tempfile
300+
import json as _json
301+
import os
302+
import tempfile
298303

299304
base = {
300305
"type": "Catalog",
@@ -327,7 +332,9 @@ def test_update_project_base_catalog(self):
327332
def test_update_project_base_catalog_no_duplicate(self):
328333
"""Calling update_project_base_catalog when the child link already exists
329334
does not produce a duplicate."""
330-
import json as _json, os, tempfile
335+
import json as _json
336+
import os
337+
import tempfile
331338

332339
base = {
333340
"type": "Catalog",
@@ -369,7 +376,9 @@ def test_update_deepesdl_collection(self):
369376
}
370377
],
371378
}
372-
import tempfile, json as _json, os
379+
import tempfile
380+
import json as _json
381+
import os
373382

374383
with tempfile.NamedTemporaryFile(
375384
mode="w", suffix=".json", delete=False

0 commit comments

Comments
 (0)