Ryan Wood
02/27/2024, 2:38 AMwith build_schedule_context(...) as context:
This appears to happen whenever I try testing a sensor but the documentation has not been updated. As an example, consider a sensor with the following signature:
def create_solar_assets(ctx: SensorEvaluationContext, s3_rs: AssumedRole, dappcfg: DappConfig)
where AssumedRole
and DappConfig
are resources, which don't yield anything and therefore aren't generators. I get the error when, in the associated tests, I call:
context = build_sensor_context(cursor="0")
requests = list(create_solar_assets(context, s3_rs=assumed_role(dapp_config, monkeypatch), dappcfg=dapp_config))
Seeing as this is a sensor, not a schedule, the error message doesn't really make sense. Honestly, this seems more like a bug than anything else. Please advise on how to address the issue.Ryan Wood
02/27/2024, 2:59 AMZach
02/27/2024, 6:07 PMyuhan
02/27/2024, 6:59 PMRyan Wood
02/28/2024, 5:04 AMRyan Wood
02/28/2024, 5:10 AM