"""Integration tests for graphql connection.""" from src.models import graphql_router def test_graphql_router_connection(): """Test connection to graphql router.""" identity_id = 'f3a4db1b-3556-4658-85fd-2f9676dab588' query = """ query Query($identityId: String) { identityById(identityId: $identityId) { email } } """ params = { 'identityId': identity_id, } headers = { 'Orchard-Identity-Id': identity_id, 'Orchard-Profile-Type': 'SettingsProfile', 'Orchard-Profile-Id': '778346786', } result = graphql_router._make_request(graphql_router._strip_query(query), params, headers) assert result == { 'identityById': { 'email': 'test-user@theorchard.io', }, }