sorted imports

This commit is contained in:
Siddhesh Agarwal
2024-11-01 11:09:54 +05:30
parent 92c10fc41e
commit 3a7383425f
3 changed files with 7 additions and 8 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
import pytest
import os
import sys
import pytest
# Add the project root to the Python path.
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
+4 -4
View File
@@ -1,8 +1,8 @@
import pytest
from simplemind.providers import Anthropic, Gemini, OpenAI, Groq, Ollama
from pydantic import BaseModel
import pytest
from simplemind.providers import Anthropic, Gemini, Groq, Ollama, OpenAI
class ResponseModel(BaseModel):
result: int
@@ -25,4 +25,4 @@ def test_generate_data(provider_cls):
data = provider.structured_response(prompt=prompt, response_model=ResponseModel)
assert isinstance(data, ResponseModel)
assert type(data.result) == int
assert isinstance(data.result, int)
+1 -2
View File
@@ -1,6 +1,5 @@
import pytest
from simplemind.providers import Anthropic, Gemini, OpenAI, Groq, Ollama
from simplemind.providers import Anthropic, Gemini, Groq, Ollama, OpenAI
@pytest.mark.parametrize(