Fix unit tests

This commit is contained in:
Ramon Wenger 2021-05-25 23:54:16 +02:00
parent a7e0555863
commit 4a5ad26fe6
2 changed files with 17 additions and 2 deletions

View File

@ -2,6 +2,7 @@ mutation UpdateTeam($input: UpdateTeamInput!) {
updateTeam(input: $input) {
success
team {
id
name
}
}

View File

@ -20,8 +20,22 @@ ME_QUERY = """
}
"""
CREATE_TEAM_MUTATION = get_graphql_mutation('createTeam.gql')
JOIN_TEAM_MUTATION = get_graphql_mutation('joinTeam.gql')
TEAM_PARTS = """
fragment TeamParts on TeamNode {
name
code
id
members {
firstName
lastName
id
isMe
}
}
"""
CREATE_TEAM_MUTATION = TEAM_PARTS + get_graphql_mutation('createTeam.gql')
JOIN_TEAM_MUTATION = TEAM_PARTS + get_graphql_mutation('joinTeam.gql')
UPDATE_TEAM_MUTATION = get_graphql_mutation('updateTeam.gql')
LEAVE_TEAM_MUTATION = get_graphql_mutation('me/leaveTeam.gql')