openai/openai-python
Publicmirrored from https://github.com/openai/openai-pythonAvailable
tests/api_resources/beta/test_realtime.py
19lines · 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 | | |
| 9 | base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") | |
| 10 | | |
| 11 | | |
| 12 | class TestRealtime: | |
| 13 | parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) | |
| 14 | | |
| 15 | | |
| 16 | class TestAsyncRealtime: | |
c62e9907stainless-app[bot]1 years ago | 17 | parametrize = pytest.mark.parametrize( |
| 18 | "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] | |
| 19 | ) |