mirror of
https://github.com/aljazceru/dev-gpt.git
synced 2026-01-04 14:24:21 +01:00
🧪3️⃣ test: level 3 refinement
This commit is contained in:
15
test/test_api.py
Normal file
15
test/test_api.py
Normal file
@@ -0,0 +1,15 @@
|
||||
from src.apis.jina_cloud import is_executor_in_hub
|
||||
from src.apis.pypi import is_package_on_pypi
|
||||
|
||||
|
||||
def test_is_microservice_in_hub():
|
||||
assert is_executor_in_hub('reoihoflsnvoiawejeruhvflsfk') is False
|
||||
assert is_executor_in_hub('CLIPImageEncoder') is True
|
||||
|
||||
def test_is_package_on_pypi():
|
||||
assert is_package_on_pypi('jina') is True
|
||||
assert is_package_on_pypi('jina', '0.9.25') is True
|
||||
assert is_package_on_pypi('jina', '10.10.10') is False
|
||||
assert is_package_on_pypi('jina-jina-jina') is False
|
||||
assert is_package_on_pypi('jina-jina-jina', '0.9.25') is False
|
||||
assert is_package_on_pypi('jina-jina-jina', '10.10.10') is False
|
||||
@@ -96,7 +96,7 @@ headers = {{
|
||||
data = {{
|
||||
"url": "URL_OF_STORED_AUDIO_FILE"
|
||||
}}
|
||||
response = requests.post(url, headers=headers, files=file, data=data)
|
||||
response = requests.post(url, headers=headers, data=data)
|
||||
print(response.text)
|
||||
2. Summarize the text (~50 words) while still maintaining the key facts.
|
||||
3. Create an audio file of the summarized text using a tts library.
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
from src.apis.jina_cloud import is_executor_in_hub
|
||||
|
||||
|
||||
def test_is_microservice_in_hub():
|
||||
assert is_executor_in_hub('reoihoflsnvoiawejeruhvflsfk') is False
|
||||
assert is_executor_in_hub('CLIPImageEncoder') is True
|
||||
Reference in New Issue
Block a user