mirror of
https://github.com/aljazceru/dev-gpt.git
synced 2025-12-18 14:14:21 +01:00
14 lines
423 B
Python
14 lines
423 B
Python
from dev_gpt.options.generate.static_files.microservice.google_custom_search import search_web, search_images
|
|
|
|
|
|
def test_web_search():
|
|
results = search_web("jina", 10)
|
|
assert len(results) == 10
|
|
assert "jina" in results[0].lower()
|
|
assert not results[0].startswith("http")
|
|
|
|
def test_image_search():
|
|
results = search_images("jina", 10)
|
|
assert len(results) >= 1
|
|
assert results[0].startswith("http")
|