update tests/api to mock requests.get with mock.patch