Skip to content

Commit 9e299f4

Browse files
LukasParkeclaude
andcommitted
test: assert beta.responses still covers the GA responses surface
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 parent 969de76 commit 9e299f4

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

‎tests/test_responses_namespace.py‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ def _public_methods(obj):
88
def test_responses_namespace_is_ga_and_beta_alias_remains_available():
99
client = OpenRouter(api_key="test-key")
1010

11-
assert client.responses is not None
12-
assert client.beta.responses is not None
13-
assert _public_methods(client.responses) == _public_methods(client.beta.responses)
11+
assert {"send", "send_async"} <= _public_methods(client.responses)
12+
assert _public_methods(client.responses) <= _public_methods(client.beta.responses)
13+
14+
15+
def test_analytics_namespace_is_top_level():
16+
client = OpenRouter(api_key="test-key")
17+
1418
assert client.analytics is not None

0 commit comments

Comments
 (0)