openai/openai-python

Public

mirrored fromhttps://github.com/openai/openai-pythonAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v1.0.0

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

tests/conftest.py

16lines · modecode

1import asyncio
2import logging
3from typing import Iterator
4
5import pytest
6
7pytest.register_assert_rewrite("tests.utils")
8
9logging.getLogger("openai").setLevel(logging.DEBUG)
10
11
12@pytest.fixture(scope="session")
13def event_loop() -> Iterator[asyncio.AbstractEventLoop]:
14 loop = asyncio.new_event_loop()
15 yield loop
16 loop.close()
17