MCPcopy Create free account
hub / github.com/Open-Bee/DataStudio / builder_custom

Method builder_custom

tests/operators/test_mllm.py:50–64  ·  view source on GitHub ↗

Create builder with custom settings.

(self, temp_dir)

Source from the content-addressed store, hash-verified

48
49 @pytest.fixture
50 def builder_custom(self, temp_dir):
51 """Create builder with custom settings."""
52 import os
53
54 prompt_file = os.path.join(temp_dir, "prompt.txt")
55 with open(prompt_file, "w") as f:
56 f.write("Test prompt: {content}")
57
58 return RequestBuilder(
59 prompt=prompt_file,
60 with_image=True,
61 with_question=True,
62 with_answer=True,
63 with_original=False,
64 )
65
66 def test_init_default(self, builder_default):
67 """Test initialization with defaults."""

Callers

nothing calls this directly

Calls 1

RequestBuilderClass · 0.90

Tested by

no test coverage detected