Skip to content

Commit

Permalink
Running precommit hooks.
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysrevans3 committed Jun 10, 2024
1 parent 1e68f7e commit cccfe9f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
1 change: 0 additions & 1 deletion stac_fastapi/api/stac_fastapi/api/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ def add_route_dependencies(
for scope in scopes:
_scope = copy.deepcopy(scope)
for route in routes:

if scope["path"] == "*":
_scope["path"] = route.path

Expand Down
18 changes: 12 additions & 6 deletions stac_fastapi/api/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,17 +390,23 @@ def test_add_default_method_route_dependencies_after_building_api(


class DummyCoreClient(core.BaseCoreClient):
def all_collections(self, *args, **kwargs): ...
def all_collections(self, *args, **kwargs):
...

def get_collection(self, *args, **kwargs): ...
def get_collection(self, *args, **kwargs):
...

def get_item(self, *args, **kwargs): ...
def get_item(self, *args, **kwargs):
...

def get_search(self, *args, **kwargs): ...
def get_search(self, *args, **kwargs):
...

def post_search(self, *args, **kwargs): ...
def post_search(self, *args, **kwargs):
...

def item_collection(self, *args, **kwargs): ...
def item_collection(self, *args, **kwargs):
...


class DummyTransactionsClient(core.BaseTransactionsClient):
Expand Down

0 comments on commit cccfe9f

Please sign in to comment.