Skip to content

Commit

Permalink
fix: updated failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanleomk committed Nov 8, 2024
1 parent a353547 commit 89d62f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/dsl/test_partial.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# type: ignore[all]
from pydantic import BaseModel, Field
from instructor.dsl.partial import Partial
from instructor.dsl.partial import Partial, LiteralPartialMixin
import pytest
import instructor
from openai import OpenAI, AsyncOpenAI
Expand Down Expand Up @@ -116,7 +116,7 @@ async def async_generator():


def test_summary_extraction():
class Summary(BaseModel):
class Summary(BaseModel, LiteralPartialMixin):
summary: str = Field(description="A detailed summary")

client = OpenAI()
Expand All @@ -143,7 +143,7 @@ class Summary(BaseModel):

@pytest.mark.asyncio
async def test_summary_extraction_async():
class Summary(BaseModel):
class Summary(BaseModel, LiteralPartialMixin):
summary: str = Field(description="A detailed summary")

client = AsyncOpenAI()
Expand Down

0 comments on commit 89d62f2

Please sign in to comment.