Skip to content

Commit 6396f5d

Browse files
committed
shorted test string
1 parent cb5da87 commit 6396f5d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/models/test_openai.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3146,6 +3146,7 @@ async def test_count_tokens(
31463146
assert usage_result.input_tokens == expected_token_count
31473147

31483148

3149+
@pytest.mark.vcr()
31493150
async def test_openai_model_usage_limit_not_exceeded(
31503151
allow_model_requests: None,
31513152
openai_api_key: str,
@@ -3159,10 +3160,12 @@ async def test_openai_model_usage_limit_not_exceeded(
31593160
usage_limits=UsageLimits(input_tokens_limit=25, count_tokens_before_request=True),
31603161
)
31613162
assert result.output == snapshot(
3162-
"""This statement is a pangram, meaning it contains every letter of the English alphabet at least once. Fun fact: it is often used to display different types of fonts because it uses all the letters."""
3163+
'This statement is a pangram, meaning it contains every letter of the English alphabet at least once. '
3164+
'Fun fact: it is often used to display different types of fonts because it uses all the letters.'
31633165
)
31643166

31653167

3168+
@pytest.mark.vcr()
31663169
async def test_openai_model_usage_limit_exceeded(
31673170
allow_model_requests: None,
31683171
openai_api_key: str,
@@ -3180,6 +3183,7 @@ async def test_openai_model_usage_limit_exceeded(
31803183
assert 'exceed the input_tokens_limit of' in str(exc_info.value)
31813184

31823185

3186+
@pytest.mark.vcr()
31833187
async def test_openai_model_usage_unsupported_model(
31843188
allow_model_requests: None,
31853189
openai_api_key: str,

0 commit comments

Comments
 (0)