Merge pull request #12110 from SmithSamuelM/sam_raet_38

Added makedirs to mock in test