test: remove print code (#25481)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
4b6687db6b
commit
c7868fb176
5 changed files with 1 additions and 12 deletions
|
|
@ -20,7 +20,6 @@ def test_firecrawl_web_extractor_crawl_mode(mocker):
|
||||||
}
|
}
|
||||||
mocker.patch("requests.post", return_value=_mock_response(mocked_firecrawl))
|
mocker.patch("requests.post", return_value=_mock_response(mocked_firecrawl))
|
||||||
job_id = firecrawl_app.crawl_url(url, params)
|
job_id = firecrawl_app.crawl_url(url, params)
|
||||||
print(f"job_id: {job_id}")
|
|
||||||
|
|
||||||
assert job_id is not None
|
assert job_id is not None
|
||||||
assert isinstance(job_id, str)
|
assert isinstance(job_id, str)
|
||||||
|
|
|
||||||
|
|
@ -129,7 +129,6 @@ class TestSegmentDumpAndLoad:
|
||||||
"""Test basic segment serialization compatibility"""
|
"""Test basic segment serialization compatibility"""
|
||||||
model = _Segments(segments=[IntegerSegment(value=1), StringSegment(value="a")])
|
model = _Segments(segments=[IntegerSegment(value=1), StringSegment(value="a")])
|
||||||
json = model.model_dump_json()
|
json = model.model_dump_json()
|
||||||
print("Json: ", json)
|
|
||||||
loaded = _Segments.model_validate_json(json)
|
loaded = _Segments.model_validate_json(json)
|
||||||
assert loaded == model
|
assert loaded == model
|
||||||
|
|
||||||
|
|
@ -137,7 +136,6 @@ class TestSegmentDumpAndLoad:
|
||||||
"""Test number segment serialization compatibility"""
|
"""Test number segment serialization compatibility"""
|
||||||
model = _Segments(segments=[IntegerSegment(value=1), FloatSegment(value=1.0)])
|
model = _Segments(segments=[IntegerSegment(value=1), FloatSegment(value=1.0)])
|
||||||
json = model.model_dump_json()
|
json = model.model_dump_json()
|
||||||
print("Json: ", json)
|
|
||||||
loaded = _Segments.model_validate_json(json)
|
loaded = _Segments.model_validate_json(json)
|
||||||
assert loaded == model
|
assert loaded == model
|
||||||
|
|
||||||
|
|
@ -145,7 +143,6 @@ class TestSegmentDumpAndLoad:
|
||||||
"""Test variable serialization compatibility"""
|
"""Test variable serialization compatibility"""
|
||||||
model = _Variables(variables=[IntegerVariable(value=1, name="int"), StringVariable(value="a", name="str")])
|
model = _Variables(variables=[IntegerVariable(value=1, name="int"), StringVariable(value="a", name="str")])
|
||||||
json = model.model_dump_json()
|
json = model.model_dump_json()
|
||||||
print("Json: ", json)
|
|
||||||
restored = _Variables.model_validate_json(json)
|
restored = _Variables.model_validate_json(json)
|
||||||
assert restored == model
|
assert restored == model
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -342,4 +342,3 @@ def test_http_request_node_form_with_multiple_files(monkeypatch: pytest.MonkeyPa
|
||||||
assert result.status == WorkflowNodeExecutionStatus.SUCCEEDED
|
assert result.status == WorkflowNodeExecutionStatus.SUCCEEDED
|
||||||
assert result.outputs is not None
|
assert result.outputs is not None
|
||||||
assert result.outputs["body"] == '{"status":"success"}'
|
assert result.outputs["body"] == '{"status":"success"}'
|
||||||
print(result.outputs["body"])
|
|
||||||
|
|
|
||||||
|
|
@ -143,15 +143,11 @@ def test_remove_first_from_array():
|
||||||
node.init_node_data(node_config["data"])
|
node.init_node_data(node_config["data"])
|
||||||
|
|
||||||
# Skip the mock assertion since we're in a test environment
|
# Skip the mock assertion since we're in a test environment
|
||||||
# Print the variable before running
|
|
||||||
print(f"Before: {variable_pool.get(['conversation', conversation_variable.name]).to_object()}")
|
|
||||||
|
|
||||||
# Run the node
|
# Run the node
|
||||||
result = list(node.run())
|
result = list(node.run())
|
||||||
|
|
||||||
# Print the variable after running and the result
|
# Completed run
|
||||||
print(f"After: {variable_pool.get(['conversation', conversation_variable.name]).to_object()}")
|
|
||||||
print(f"Result: {result}")
|
|
||||||
|
|
||||||
got = variable_pool.get(["conversation", conversation_variable.name])
|
got = variable_pool.get(["conversation", conversation_variable.name])
|
||||||
assert got is not None
|
assert got is not None
|
||||||
|
|
|
||||||
|
|
@ -279,8 +279,6 @@ def test_structured_output_parser():
|
||||||
]
|
]
|
||||||
|
|
||||||
for case in testcases:
|
for case in testcases:
|
||||||
print(f"Running test case: {case['name']}")
|
|
||||||
|
|
||||||
# Setup model entity
|
# Setup model entity
|
||||||
model_schema = get_model_entity(case["provider"], case["model_name"], case["support_structure_output"])
|
model_schema = get_model_entity(case["provider"], case["model_name"], case["support_structure_output"])
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue