'Stub the discovery service\'s program list and detail API endpoints.'

def stub_catalog_api(self, programs):

    self.set_catalog_integration(is_enabled=True, service_username=self.username)
    CatalogFixture().install_programs(programs)
    program_types = [program['type'] for program in programs]
    CatalogFixture().install_program_types(program_types)
