Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
moradology committed Aug 10, 2021
1 parent 2063c09 commit d996f5a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
22 changes: 10 additions & 12 deletions stac_fastapi/pgstac/tests/resources/test_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -913,20 +913,18 @@ async def test_search_invalid_query_field(app_client):


@pytest.mark.asyncio
async def test_relative_link_construction(load_test_data, altered_root_app_client):

async def test_relative_link_construction():
req = Request(
scope={
'type': 'http',
'scheme': 'http',
'method': 'PUT',
'root_path': 'http://test/stac',
'path': '/',
'raw_path': b'/tab/abc',
'query_string': b'',
'headers': {}
"type": "http",
"scheme": "http",
"method": "PUT",
"root_path": "http://test/stac",
"path": "/",
"raw_path": b"/tab/abc",
"query_string": b"",
"headers": {},
}
)
links = CollectionLinks(collection_id="naip", request=req)

assert links.link_items()['href'] == "http://test/stac/collections/naip/items"
assert links.link_items()["href"] == "http://test/stac/collections/naip/items"
1 change: 0 additions & 1 deletion stac_fastapi/sqlalchemy/tests/api/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

from ..conftest import MockStarletteRequest


STAC_CORE_ROUTES = [
"GET /",
"GET /collections",
Expand Down

0 comments on commit d996f5a

Please sign in to comment.