openai/openai-python
Publicmirrored fromhttps://github.com/openai/openai-pythonAvailable
tests/api_resources/beta/test_realtime.py
21lines · modecode
| 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. |
| 2 | |
| 3 | from __future__ import annotations |
| 4 | |
| 5 | import os |
| 6 | |
| 7 | import pytest |
| 8 | |
| 9 | # pyright: reportDeprecated=false |
| 10 | |
| 11 | base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") |
| 12 | |
| 13 | |
| 14 | class TestRealtime: |
| 15 | parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) |
| 16 | |
| 17 | |
| 18 | class TestAsyncRealtime: |
| 19 | parametrize = pytest.mark.parametrize( |
| 20 | "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] |
| 21 | ) |
| 22 | |