Skip to content

Commit e0b456d

Browse files
committed
clean up, update
1 parent 2d10292 commit e0b456d

File tree

4 files changed

+1
-13
lines changed

4 files changed

+1
-13
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1515
### Changed
1616

1717
- Optimize data_loader.py script [#395](https://github.com/stac-utils/stac-fastapi-elasticsearch-opensearch/pull/395)
18-
- Refactored test configuration to use shared app config pattern [#396](https://github.com/stac-utils/stac-fastapi-elasticsearch-opensearch/pull/396)
18+
- Refactored test configuration to use shared app config pattern [#399](https://github.com/stac-utils/stac-fastapi-elasticsearch-opensearch/pull/399)
1919

2020
### Removed
2121

stac_fastapi/elasticsearch/stac_fastapi/elasticsearch/app.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@
104104

105105
post_request_model = create_post_request_model(search_extensions)
106106

107-
# Export the configuration that would be used to create the app
108107
app_config = {
109108
"title": os.getenv("STAC_FASTAPI_TITLE", "stac-fastapi-elasticsearch"),
110109
"description": os.getenv("STAC_FASTAPI_DESCRIPTION", "stac-fastapi-elasticsearch"),
@@ -122,7 +121,6 @@
122121
"route_dependencies": get_route_dependencies(),
123122
}
124123

125-
# Create the app instance for production use
126124
api = StacApi(**app_config)
127125

128126

stac_fastapi/opensearch/stac_fastapi/opensearch/app.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@
105105

106106
post_request_model = create_post_request_model(search_extensions)
107107

108-
# Export the configuration that would be used to create the app
109108
app_config = {
110109
"title": os.getenv("STAC_FASTAPI_TITLE", "stac-fastapi-opensearch"),
111110
"description": os.getenv("STAC_FASTAPI_DESCRIPTION", "stac-fastapi-opensearch"),
@@ -123,7 +122,6 @@
123122
"route_dependencies": get_route_dependencies(),
124123
}
125124

126-
# Create the app instance for production use
127125
api = StacApi(**app_config)
128126

129127

stac_fastapi/tests/api/test_api.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,6 @@ async def test_api_headers(app_client):
7171
@pytest.mark.asyncio
7272
async def test_router(app):
7373
api_routes = set([f"{list(route.methods)[0]} {route.path}" for route in app.routes])
74-
print("\nActual routes:")
75-
for route in sorted(api_routes):
76-
print(f" {route}")
77-
print("\nExpected routes:")
78-
for route in sorted(ROUTES):
79-
print(f" {route}")
80-
print("\nMissing routes:", ROUTES - api_routes)
81-
print("Extra routes:", api_routes - ROUTES)
8274
assert len(api_routes - ROUTES) == 0
8375

8476

0 commit comments

Comments
 (0)