Testing with Resources

test_mode(resources=...), MockResource, pytest fixtures, propagating errors.