Skip to content

Commit

Permalink
edit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentsarago committed Jul 9, 2024
1 parent b149511 commit 8dbd697
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions stac_fastapi/api/tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,13 @@
from pydantic import ValidationError

from stac_fastapi.api.models import create_get_request_model, create_post_request_model
from stac_fastapi.extensions.core.filter.filter import FilterExtension
from stac_fastapi.extensions.core.sort.sort import SortExtension
from stac_fastapi.extensions.core import FieldsExtension, FilterExtension, SortExtension
from stac_fastapi.types.search import BaseSearchGetRequest, BaseSearchPostRequest


def test_create_get_request_model():
request_model = create_get_request_model(
extensions=[FilterExtension()],
extensions=[FilterExtension(), FieldsExtension()],
base_model=BaseSearchGetRequest,
)

Expand Down Expand Up @@ -68,7 +67,7 @@ def route(model=Depends(request_model)):
)
def test_create_post_request_model(filter, passes):
request_model = create_post_request_model(
extensions=[FilterExtension()],
extensions=[FilterExtension(), FieldsExtension()],
base_model=BaseSearchPostRequest,
)

Expand Down

0 comments on commit 8dbd697

Please sign in to comment.