mirror of
https://github.com/aljazceru/dev-gpt.git
synced 2026-01-04 14:24:21 +01:00
🔍 feat: search api - simplified
This commit is contained in:
13
test/unit/test_search.py
Normal file
13
test/unit/test_search.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from dev_gpt.options.generate.static_files.microservice.search import search_web, search_image
|
||||
|
||||
|
||||
def test_web_search():
|
||||
results = search_web("jina", 10)
|
||||
assert len(results) == 10
|
||||
assert "jina" in results[0]
|
||||
assert not results[0].startswith("http")
|
||||
|
||||
def test_image_search():
|
||||
results = search_image("jina", 10)
|
||||
assert len(results) == 10
|
||||
assert results[0].startswith("http")
|
||||
Reference in New Issue
Block a user