Differential D4920 Diff 24623 python_modules/dagster/dagster_tests/core_tests/config_types_tests/evaluator_tests/test_composite_descent.py
Changeset View
Changeset View
Standalone View
Standalone View
python_modules/dagster/dagster_tests/core_tests/config_types_tests/evaluator_tests/test_composite_descent.py
Show First 20 Lines • Show All 781 Lines • ▼ Show 20 Lines | def test_configuring_solids_without_specifying_name(): | ||||
with pytest.raises( | with pytest.raises( | ||||
DagsterInvalidDefinitionError, | DagsterInvalidDefinitionError, | ||||
match='Missing string param "name" while attempting to configure the solid "return_int', | match='Missing string param "name" while attempting to configure the solid "return_int', | ||||
): | ): | ||||
configured(return_int)(2) | configured(return_int)(2) | ||||
with pytest.raises( | with pytest.raises( | ||||
DagsterInvalidDefinitionError, | DagsterInvalidDefinitionError, | ||||
match='Missing string param "name" while attempting to configure the composite solid "return_int_composite"', | match='Missing string param "name" while attempting to configure the graph "return_int_composite"', | ||||
): | ): | ||||
configured(return_int_composite)({"num": 5}) | configured(return_int_composite)({"num": 5}) | ||||
def test_configuring_composite_solid_with_no_config_mapping(): | def test_configuring_composite_solid_with_no_config_mapping(): | ||||
@solid | @solid | ||||
def return_run_id(context): | def return_run_id(context): | ||||
return context.run_id | return context.run_id | ||||
Show All 10 Lines |