Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! fixup! Issue #404/PR#481 test_datacube100…
Browse files Browse the repository at this point in the history
… streamlining
  • Loading branch information
soxofaan committed Oct 18, 2023
1 parent b90f252 commit 0788181
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/rest/datacube/test_vectorcube.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import json
import re
from pathlib import Path

Expand Down Expand Up @@ -553,7 +554,7 @@ def test_vectorcube_download_validation(

output = tmp_path / "result.geojson"
vector_cube.download(outputfile=output, **dict_no_none(validate=validate))
assert output.read_bytes() == b'{"type": "Point", "coordinates": [1, 2]}'
assert json.loads(output.read_text()) == {"type": "Point", "coordinates": [1, 2]}
assert dummy_backend.get_sync_pg() == self._PG_GEOJSON_SAVE

if validation_expected:
Expand Down

0 comments on commit 0788181

Please sign in to comment.