File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/aws-documentation-mcp-server/tests Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -179,7 +179,8 @@ async def test_search_documentation_with_product_type():
179179 assert second_response is not None
180180 assert second_results is not None
181181 assert len (second_results ) > 0
182- assert first_product_type in second_response .facets ['product_types' ]
182+ assert len (second_response .facets ['product_types' ]) == 1
183+ assert first_product_type == second_response .facets ['product_types' ][0 ]
183184
184185
185186@pytest .mark .asyncio
@@ -224,7 +225,8 @@ async def test_search_documentation_with_guide_type():
224225 assert second_response is not None
225226 assert second_results is not None
226227 assert len (second_results ) > 0
227- assert first_guide_type in second_response .facets ['guide_types' ]
228+ assert len (second_response .facets ['guide_types' ]) == 1
229+ assert first_guide_type == second_response .facets ['guide_types' ][0 ]
228230
229231
230232if __name__ == '__main__' :
You can’t perform that action at this time.
0 commit comments