Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
[Test] speed up Hypothesis strategies to avoid too_slow (#25623)
Yongtao Huang188eb838c58e
diff --git a/api/tests/unit_tests/factories/test_variable_factory.py b/api/tests/unit_tests/factories/test_variable_factory.pyindex 2a193ef2d77..1e98e99aabc 100644--- a/api/tests/unit_tests/factories/test_variable_factory.py+++ b/api/tests/unit_tests/factories/test_variable_factory.py@@ -4,7 +4,7 @@ from typing import Anyfrom uuid import uuid4import pytest-from hypothesis import given+from hypothesis import given, settingsfrom hypothesis import strategies as stfrom core.file import File, FileTransferMethod, FileType@@ -486,13 +486,14 @@ def _generate_file(draw) -> File:def _scalar_value() -> st.SearchStrategy[int | float | str | File | None]:return st.one_of(st.none(),- st.integers(),- st.floats(),- st.text(),+ st.integers(min_value=-(10**6), max_value=10**6),+ st.floats(allow_nan=True, allow_infinity=False),+ st.text(max_size=50),_generate_file(),)+@settings(max_examples=50)@given(_scalar_value())def test_build_segment_and_extract_values_for_scalar_types(value):seg = variable_factory.build_segment(value)@@ -503,7 +504,8 @@ def test_build_segment_and_extract_values_for_scalar_types(value):assert seg.value == value-@given(st.lists(_scalar_value()))+@settings(max_examples=50)+@given(values=st.lists(_scalar_value(), max_size=20))def test_build_segment_and_extract_values_for_array_types(values):seg = variable_factory.build_segment(values)assert seg.value == values