Differential D8684 Diff 40955 examples/docs_snippets/docs_snippets_tests/concepts_tests/solids_pipelines_tests/test_solids.py
Changeset View
Changeset View
Standalone View
Standalone View
examples/docs_snippets/docs_snippets_tests/concepts_tests/solids_pipelines_tests/test_solids.py
Show All 38 Lines | for solid in solids: | ||||
result = execute_solid(solid, input_values=input_values) | result = execute_solid(solid, input_values=input_values) | ||||
assert result | assert result | ||||
assert result.success | assert result.success | ||||
def test_context_solid(): | def test_context_solid(): | ||||
result = execute_solid( | result = execute_solid( | ||||
context_solid, | context_solid, | ||||
run_config={"solids": {"context_solid": {"config": {"name": "my_name"}}}}, | run_config={ | ||||
"solids": {"context_solid": {"config": {"name": "my_name"}}} | |||||
}, | |||||
) | ) | ||||
assert result | assert result | ||||
assert result.success | assert result.success | ||||
def test_my_configurable_solid(): | def test_my_configurable_solid(): | ||||
result = execute_solid( | result = execute_solid( | ||||
my_configurable_solid, | my_configurable_solid, | ||||
run_config={ | run_config={ | ||||
"solids": { | "solids": { | ||||
"my_configurable_solid": {"config": {"api_endpoint": "https://localhost:3000"}} | "my_configurable_solid": { | ||||
"config": {"api_endpoint": "https://localhost:3000"} | |||||
} | |||||
} | } | ||||
}, | }, | ||||
) | ) | ||||
assert result | assert result | ||||
assert result.success | assert result.success | ||||
def test_solid_factory(): | def test_solid_factory(): | ||||
factory_solid = x_solid("test") | factory_solid = x_solid("test") | ||||
assert isinstance(factory_solid, SolidDefinition) | assert isinstance(factory_solid, SolidDefinition) |