File tree Expand file tree Collapse file tree 4 files changed +1
-13
lines changed
elasticsearch/stac_fastapi/elasticsearch
opensearch/stac_fastapi/opensearch Expand file tree Collapse file tree 4 files changed +1
-13
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 104104
105105post_request_model = create_post_request_model (search_extensions )
106106
107- # Export the configuration that would be used to create the app
108107app_config = {
109108 "title" : os .getenv ("STAC_FASTAPI_TITLE" , "stac-fastapi-elasticsearch" ),
110109 "description" : os .getenv ("STAC_FASTAPI_DESCRIPTION" , "stac-fastapi-elasticsearch" ),
122121 "route_dependencies" : get_route_dependencies (),
123122}
124123
125- # Create the app instance for production use
126124api = StacApi (** app_config )
127125
128126
Original file line number Diff line number Diff line change 105105
106106post_request_model = create_post_request_model (search_extensions )
107107
108- # Export the configuration that would be used to create the app
109108app_config = {
110109 "title" : os .getenv ("STAC_FASTAPI_TITLE" , "stac-fastapi-opensearch" ),
111110 "description" : os .getenv ("STAC_FASTAPI_DESCRIPTION" , "stac-fastapi-opensearch" ),
123122 "route_dependencies" : get_route_dependencies (),
124123}
125124
126- # Create the app instance for production use
127125api = StacApi (** app_config )
128126
129127
Original file line number Diff line number Diff line change @@ -71,14 +71,6 @@ async def test_api_headers(app_client):
7171@pytest .mark .asyncio
7272async def test_router (app ):
7373 api_routes = set ([f"{ list (route .methods )[0 ]} { route .path } " for route in app .routes ])
74- print ("\n Actual routes:" )
75- for route in sorted (api_routes ):
76- print (f" { route } " )
77- print ("\n Expected routes:" )
78- for route in sorted (ROUTES ):
79- print (f" { route } " )
80- print ("\n Missing routes:" , ROUTES - api_routes )
81- print ("Extra routes:" , api_routes - ROUTES )
8274 assert len (api_routes - ROUTES ) == 0
8375
8476
You can’t perform that action at this time.
0 commit comments