(PUP-2214) Fix failing doc tests
Doc tests with mocking did not work, needed to use a real configured env.