Skip to content

Commit 26cdde8

Browse files
committed
copy operation.
1 parent 49b80b2 commit 26cdde8

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
@@ -651,7 +651,7 @@ async def test_patch_operations_collection(app_client, ctx):
651651
"path": "/summaries/instrument",
652652
"from": "/summaries/instruments",
653653
},
654-
# {"op": "copy", "from": "license", "path": "/summaries/license"},
654+
{"op": "copy", "from": "/license", "path": "/summaries/license"},
655655
]
656656

657657
resp = await app_client.patch(
@@ -675,8 +675,8 @@ async def test_patch_operations_collection(app_client, ctx):
675675
new_resp_json["summaries"]["instrument"]
676676
== ctx.collection["summaries"]["instruments"]
677677
)
678-
# assert new_resp_json["license"] == "PDDL-1.0"
679-
# assert new_resp_json["summaries"]["license"] == "PDDL-1.0"
678+
assert new_resp_json["license"] == ctx.collection["license"]
679+
assert new_resp_json["summaries"]["license"] == ctx.collection["license"]
680680

681681

682682
@pytest.mark.asyncio

0 commit comments

Comments
 (0)