python-redmine exposes as a context manager, while the actual requests.Session lives in . Mounting the retry adapter on the wrong object caused: 'function' object has no attribute 'mount' on startup. Update the related test to mock the real session.