fix: correct quote currency extraction in create_product_info and remove debug prints from tests

This commit is contained in:
2025-10-02 01:36:57 +02:00
parent ca463f9f5f
commit c978b92268
4 changed files with 1 additions and 8 deletions

View File

@@ -33,10 +33,8 @@ class TestNewsAPITool:
result = tool.wrapper_handler.try_call_all(lambda w: w.get_top_headlines(limit=2))
assert isinstance(result, dict)
assert len(result.keys()) > 0
print("Results from providers:", result.keys())
for provider, articles in result.items():
for article in articles:
print(provider, article.title)
assert article.title is not None
assert article.source is not None
@@ -45,9 +43,7 @@ class TestNewsAPITool:
result = tool.wrapper_handler.try_call_all(lambda w: w.get_latest_news(query="crypto", limit=2))
assert isinstance(result, dict)
assert len(result.keys()) > 0
print("Results from providers:", result.keys())
for provider, articles in result.items():
for article in articles:
print(provider, article.title)
assert article.title is not None
assert article.source is not None

View File

@@ -24,9 +24,7 @@ class TestSocialAPIsTool:
result = tool.wrapper_handler.try_call_all(lambda w: w.get_top_crypto_posts(limit=2))
assert isinstance(result, dict)
assert len(result.keys()) > 0
print("Results from providers:", result.keys())
for provider, posts in result.items():
for post in posts:
print(provider, post.title)
assert post.title is not None
assert post.time is not None

View File

@@ -34,7 +34,6 @@ class TestMarketDataAggregator:
}
aggregated = aggregate_product_info(products)
print(aggregated)
assert len(aggregated) == 1
info = aggregated[0]