Skip to content

Commit 0fea89d

Browse files
author
Aaditya Bhoota
committed
Minor test case update to be more robust
1 parent 0ebfecc commit 0fea89d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/aws-documentation-mcp-server/tests/test_aws_search_live.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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

230232
if __name__ == '__main__':

0 commit comments

Comments
 (0)