Skip to content

Commit

Permalink
bump
Browse files Browse the repository at this point in the history
  • Loading branch information
jxnl committed Feb 5, 2024
1 parent 84c71dc commit 803c2c6
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions tests/test_patch.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
import functools

import pytest
from openai import AsyncOpenAI, OpenAI
from openai.types.chat import ChatCompletionMessage, ChatCompletionMessageParam
from openai.types.chat.chat_completion_message import FunctionCall
from openai.types.chat.chat_completion_message_tool_call import (
ChatCompletionMessageToolCall,
Function,
)

import instructor
from instructor.patch import OVERRIDE_DOCS, dump_message, is_async
from instructor.patch import OVERRIDE_DOCS, is_async


def test_patch_completes_successfully():
Expand Down Expand Up @@ -50,12 +43,3 @@ def test_override_docs():
assert (
"response_model" in OVERRIDE_DOCS
), "response_model should be in OVERRIDE_DOCS"


def test_dump_message(
name_of_test: str,
message: ChatCompletionMessage,
expected: ChatCompletionMessageParam,
):
#! Something is going on right now, but I don't have time to figure it out @jxnlco
assert dump_message(message) == expected, name_of_test

0 comments on commit 803c2c6

Please sign in to comment.