Fred Benton
05/15/2023, 2:26 PMdef test_pipeline_assets():
result = (
materialize_to_memory(
assets=[get_stuff],
resources={
"conn": redshift_connection,
"pipeline_configuration": {
"target_district": "BLORG",
"source_schema": "FOO",
"output_schema": "BAR",
},
},
),
)
assert result.success
I get the error:
AttributeError: 'tuple' object has no attribute 'success'
what attribute of result should I use instead of success?daniel
05/15/2023, 2:39 PMresult
to a Python tuple with a single elementFred Benton
05/15/2023, 2:40 PMAdam Bloom
05/15/2023, 2:40 PMdef test_pipeline_assets():
result = materialize_to_memory(
assets=[get_stuff],
resources={
"conn": redshift_connection,
"pipeline_configuration": {
"target_district": "BLORG",
"source_schema": "FOO",
"output_schema": "BAR",
},
},
)
assert result.success
try that 🙂,
is what was converting it to a tuple instead.Fred Benton
05/15/2023, 2:42 PM