mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-22 13:25:00 +00:00
test: Update token budget parsing test cases
This commit is contained in:
parent
3d05007024
commit
7d902d2f3e
1 changed files with 2 additions and 5 deletions
|
@ -1291,10 +1291,8 @@ class TestCommands(TestCase):
|
|||
# Test with various formats
|
||||
test_values = {
|
||||
"8k": 8192, # 8 * 1024
|
||||
"8K": 8192, # 8 * 1024
|
||||
"10.5k": 10752, # 10.5 * 1024
|
||||
"0.5M": 524288, # 0.5 * 1024 * 1024
|
||||
"1000": 1000,
|
||||
"512k": 524288, # 0.5 * 1024 * 1024
|
||||
}
|
||||
|
||||
for input_value, expected_tokens in test_values.items():
|
||||
|
@ -1309,8 +1307,7 @@ class TestCommands(TestCase):
|
|||
# Check that the tool output shows the correct value with format
|
||||
# Use the actual input_value (not normalized) in the assertion
|
||||
mock_tool_output.assert_any_call(
|
||||
f"Set thinking token budget to {expected_tokens:,} tokens"
|
||||
f" ({input_value})."
|
||||
f"Set thinking token budget to {expected_tokens:,} tokens ({input_value})."
|
||||
)
|
||||
|
||||
# Test with no value provided - should display current value
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue