Skip to content

Automate browser based workflows with AI

ci(SKY-12002): unbind pytest-shard critical path from two outlier tests (#7208)

Suchintan337c002595dc
diff --git a/tests/unit/test_prompt_truncation.py b/tests/unit/test_prompt_truncation.py
index 01a08fc83..c61671f02 100644
--- a/tests/unit/test_prompt_truncation.py
+++ b/tests/unit/test_prompt_truncation.py
@@ -20,7 +20,7 @@ def test_truncate_short_string_returns_unchanged() -> None:
def test_truncate_long_string_keeps_tail() -> None:
from skyvern.utils.prompt_truncation import truncate_previous_extracted_information
- value = "HEAD" + ("x" * 500_000) + "TAIL"
+ value = "HEAD" + ("x" * 800) + "TAIL"
result = truncate_previous_extracted_information(value, max_tokens=100)
assert isinstance(result, str)
assert result.endswith("TAIL")