def test_get_admins(self): cpa = CKANPortalAPI(base_url=CKAN_BASE_URL, api_key=CKAN_API_KEY) res = cpa.get_admin_users(organization_id=CKAN_ORG_ID) print(res) self.assertTrue(res['success'])
def get_admin_users(): """ fetch admin users from an organization """ owner_org = config.CKAN_OWNER_ORG cpa = CKANPortalAPI(base_url=config.CKAN_CATALOG_URL, api_key=config.CKAN_API_KEY) res = cpa.get_admin_users(organization_id=owner_org) return res['result']