Added mocked get_api_repo test in courses.tests