File: test_tool_param.py

package info (click to toggle)
python-openai 1.99.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,784 kB
  • sloc: python: 57,274; sh: 140; makefile: 7
file content (8 lines) | stat: -rw-r--r-- 263 bytes parent folder | download
1
2
3
4
5
6
7
8
from openai.types.chat import ChatCompletionToolParam


def test_tool_param_can_be_instantiated() -> None:
    assert ChatCompletionToolParam(type="function", function={"name": "test"}) == {
        "function": {"name": "test"},
        "type": "function",
    }