Skip to content
This repository was archived by the owner on Apr 2, 2025. It is now read-only.

Commit b4cf99a

Browse files
author
Phil Varner
committed
rename fields
1 parent 30cae8d commit b4cf99a

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

bin/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ class MyOpportunityProperties(OpportunityProperties):
9696

9797

9898
class MyOrderParameters(OrderParameters):
99-
delivery_mechanism: str | None = None
99+
s3_path: str | None = None
100100

101101

102102
order_db = MockOrderDB()

src/stapi_fastapi/models/opportunity.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
# Copied and modified from https://github.com/stac-utils/stac-pydantic/blob/main/stac_pydantic/item.py#L11
1313
class OpportunityProperties(BaseModel):
14-
product_id: str
1514
datetime: DatetimeInterval
1615
model_config = ConfigDict(extra="allow")
1716

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727

2828
class TestSpotlightOrderParameters(OrderParameters):
29-
delivery_mechanism: str | None = None
29+
s3_path: str | None = None
3030

3131

3232
@pytest.fixture(scope="session")

tests/product_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,4 @@ def test_product_order_parameters_response(
6363

6464
json_schema = res.json()
6565
assert "properties" in json_schema
66-
assert "delivery_mechanism" in json_schema["properties"]
66+
assert "s3_path" in json_schema["properties"]

0 commit comments

Comments
 (0)