Sensors and schedules are functions too. Build their context and call them:
context = dg.build_sensor_context(cursor="1"), then requests = new_files(context). Assert the run keys and the new cursor, context.cursor.
context = dg.build_schedule_context(scheduled_execution_time=datetime.datetime(2026, 11, 9, 6, 0)), then call the schedule and assert the run config of the returned RunRequest.
These tests cover the logic people get wrong: off-by-one cursors, the wrong day, skipping when they should not. They run in milliseconds and need no daemon. Test the edges: the first tick with no cursor, an empty source, and a cursor at the end.
The first tick has no cursor and requests every file.