Skip to content

Commit c7868fb

Browse files
test: remove print code (langgenius#25481)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent 4b6687d commit c7868fb

File tree

5 files changed

+1
-12
lines changed

5 files changed

+1
-12
lines changed

‎api/tests/unit_tests/core/rag/extractor/firecrawl/test_firecrawl.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ def test_firecrawl_web_extractor_crawl_mode(mocker):
2020
}
2121
mocker.patch("requests.post", return_value=_mock_response(mocked_firecrawl))
2222
job_id = firecrawl_app.crawl_url(url, params)
23-
print(f"job_id: {job_id}")
2423

2524
assert job_id is not None
2625
assert isinstance(job_id, str)

‎api/tests/unit_tests/core/variables/test_segment.py‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,23 +129,20 @@ def test_segments(self):
129129
"""Test basic segment serialization compatibility"""
130130
model = _Segments(segments=[IntegerSegment(value=1), StringSegment(value="a")])
131131
json = model.model_dump_json()
132-
print("Json: ", json)
133132
loaded = _Segments.model_validate_json(json)
134133
assert loaded == model
135134

136135
def test_segment_number(self):
137136
"""Test number segment serialization compatibility"""
138137
model = _Segments(segments=[IntegerSegment(value=1), FloatSegment(value=1.0)])
139138
json = model.model_dump_json()
140-
print("Json: ", json)
141139
loaded = _Segments.model_validate_json(json)
142140
assert loaded == model
143141

144142
def test_variables(self):
145143
"""Test variable serialization compatibility"""
146144
model = _Variables(variables=[IntegerVariable(value=1, name="int"), StringVariable(value="a", name="str")])
147145
json = model.model_dump_json()
148-
print("Json: ", json)
149146
restored = _Variables.model_validate_json(json)
150147
assert restored == model
151148

‎api/tests/unit_tests/core/workflow/nodes/http_request/test_http_request_node.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,4 +342,3 @@ def attr_checker(*args, **kwargs):
342342
assert result.status == WorkflowNodeExecutionStatus.SUCCEEDED
343343
assert result.outputs is not None
344344
assert result.outputs["body"] == '{"status":"success"}'
345-
print(result.outputs["body"])

‎api/tests/unit_tests/core/workflow/nodes/variable_assigner/v2/test_variable_assigner_v2.py‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,15 +143,11 @@ def test_remove_first_from_array():
143143
node.init_node_data(node_config["data"])
144144

145145
# Skip the mock assertion since we're in a test environment
146-
# Print the variable before running
147-
print(f"Before: {variable_pool.get(['conversation', conversation_variable.name]).to_object()}")
148146

149147
# Run the node
150148
result = list(node.run())
151149

152-
# Print the variable after running and the result
153-
print(f"After: {variable_pool.get(['conversation', conversation_variable.name]).to_object()}")
154-
print(f"Result: {result}")
150+
# Completed run
155151

156152
got = variable_pool.get(["conversation", conversation_variable.name])
157153
assert got is not None

‎api/tests/unit_tests/utils/structured_output_parser/test_structured_output_parser.py‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,6 @@ def test_structured_output_parser():
279279
]
280280

281281
for case in testcases:
282-
print(f"Running test case: {case['name']}")
283-
284282
# Setup model entity
285283
model_schema = get_model_entity(case["provider"], case["model_name"], case["support_structure_output"])
286284

0 commit comments

Comments
 (0)