Skip to content

Commit 5393405

Browse files
committed
Json patch replace.
1 parent 530eba7 commit 5393405

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stac_fastapi/tests/api/test_api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ async def test_patch_json_collection(app_client, ctx):
645645
async def test_patch_operations_collection(app_client, ctx):
646646
operations = [
647647
{"op": "add", "path": "/summaries/hello", "value": "world"},
648-
# {"op": "replace", "path": "/summaries/gsd", "value": [50]},
648+
{"op": "replace", "path": "/summaries/gsd", "value": [50]},
649649
# {
650650
# "op": "move",
651651
# "path": "/summaries/instrument",
@@ -669,8 +669,8 @@ async def test_patch_operations_collection(app_client, ctx):
669669
new_resp_json = new_resp.json()
670670

671671
assert new_resp_json["summaries"]["hello"] == "world"
672-
# assert "instruments" not in new_resp_json["summaries"]
673-
# assert new_resp_json["summaries"]["gsd"] == [50]
672+
assert "instruments" not in new_resp_json["summaries"]
673+
assert new_resp_json["summaries"]["gsd"] == [50]
674674
# assert new_resp_json["license"] == "PDDL-1.0"
675675
# assert new_resp_json["summaries"]["license"] == "PDDL-1.0"
676676
# assert new_resp_json["summaries"]["instrument"] == ["oli", "tirs"]

0 commit comments

Comments
 (0)