"""Test application dataloader endpoint.""" import requests from tests.integration import config def test_application_dataloader_endpoint() -> None: """POST /applications/dataloader.""" response = requests.post( '{qa_base_url}/applications/dataloader'.format(qa_base_url=config.QA_BASE_URL), json=[ 'BANKING_TAX_APP', 'COLLABORATORS_APP', 'CUSTOMER_ACCOUNTING_APP', 'FANSIFTER_APP', 'INSIGHTS_APP', 'SONGWHIP_APP', 'WORKSTATION_ACCOUNTING_APP', 'WORKSTATION_ANALYTICS_APP', 'WORKSTATION_CATALOG_APP', 'WORKSTATION_MARKETING_APP', ], ) assert response.status_code == 200 assert len(response.json()) == 10 assert response.json() == [ {'application_id': 'BANKING_TAX_APP', 'group_id': 'ACCOUNTING_APP_GROUP'}, {'application_id': 'COLLABORATORS_APP', 'group_id': 'ACCOUNTING_APP_GROUP'}, {'application_id': 'CUSTOMER_ACCOUNTING_APP', 'group_id': 'ACCOUNTING_APP_GROUP'}, {'application_id': 'FANSIFTER_APP', 'group_id': 'MARKETING_APP_GROUP'}, {'application_id': 'INSIGHTS_APP', 'group_id': 'ANALYTICS_APP_GROUP'}, {'application_id': 'SONGWHIP_APP', 'group_id': 'MARKETING_APP_GROUP'}, {'application_id': 'WORKSTATION_ACCOUNTING_APP', 'group_id': 'ACCOUNTING_APP_GROUP'}, {'application_id': 'WORKSTATION_ANALYTICS_APP', 'group_id': 'ANALYTICS_APP_GROUP'}, {'application_id': 'WORKSTATION_CATALOG_APP', 'group_id': 'CONTENT_APP_GROUP'}, {'application_id': 'WORKSTATION_MARKETING_APP', 'group_id': 'MARKETING_APP_GROUP'}, ]