openai/openai-python
Publicmirrored from https://github.com/openai/openai-pythonAvailable
tests/api_resources/beta/test_realtime.py
21lines · modeblame
5fdba486stainless-app[bot]1 years ago | 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 | | |
3d3d16abstainless-app[bot]9 months ago | 9 | # pyright: reportDeprecated=false |
| 10 | | |
5fdba486stainless-app[bot]1 years ago | 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: | |
c62e9907stainless-app[bot]1 years ago | 19 | parametrize = pytest.mark.parametrize( |
| 20 | "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] | |
| 21 | ) |