Skip to content

Commit

Permalink
Add another test case
Browse files Browse the repository at this point in the history
  • Loading branch information
ostcar committed Jul 2, 2024
1 parent 2970f99 commit 8f836f7
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions vote/vote_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1031,6 +1031,45 @@ func TestVoteDelegationAndGroup(t *testing.T) {

0,
},

{
"Vote for self when delegation is deactivated users_forbid_delegator_to_vote==true",
`
poll/1:
meeting_id: 1
entitled_group_ids: [1]
pollmethod: Y
global_yes: true
backend: fast
type: pseudoanonymous
meeting/1:
users_enable_vote_delegations: false
users_forbid_delegator_to_vote: true
user:
1:
is_present_in_meeting_ids: [1]
meeting_user_ids: [10]
2:
meeting_user_ids: [20]
meeting_user:
10:
meeting_id: 1
user_id: 1
group_ids: [1]
vote_delegated_to_id: 20
20:
meeting_id: 1
`,
`{"user_id": 1, "value":"Y"}`,

1,
},
} {
t.Run(tt.name, func(t *testing.T) {
ctx := context.Background()
Expand Down

0 comments on commit 8f836f7

Please sign in to comment.