Finally get mocking sorted so that docs build without dependencies