Related question - as pipelines are not python programs - it would be nice to be able to write unit tests to pipelines code :)
And that's where mock pipelines/tasks could be helpful
You can absolutely test Dagger pipelines, in the same way you test the rest of your code. Just use the dagger library in your tests files, the way you would use any other library. It should work the way you expect.