-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tests/fin council #1070
Tests/fin council #1070
Conversation
|
||
await expect(helper.finCouncil.collective.execute( | ||
finCounselors.andy, | ||
helper.democracy.vetoExternalCall(preimageHash), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
А мы и в других тестах не проверяем, что 100% некого органа НЕ может ветировать демократию?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
В тех комитете мы проверяем что member может вето
В консулах вето демократии не проверяется вообще.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Добавил для фин консулов и консулов
)).to.be.rejectedWith('BadOrigin'); | ||
}); | ||
|
||
itSub('[Negative] FinCouncil can\' cancel Fellowship referendums', async ({helper}) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can't
.rejectedWith('BadOrigin'); | ||
}); | ||
|
||
itSub('[Negative] TechComm member cannot cancel Fellowship referendums', async ({helper}) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not TechComm but a member of fin council
)).to.be.rejectedWith('BadOrigin'); | ||
}); | ||
|
||
itSub('[Negative] FinCouncil member can\' add a Fellowship member', async ({helper}) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can't
await clearTechComm(sudoer); | ||
}); | ||
|
||
async function proposalFromMoreThanHalfCouncil(proposal: any) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
proposalFromMoreThanHalfFinCouncil
и всех подобных случаев. Все-таки обычный Council -- это именно Совет. А финансовый -- это отдельная сущность, все-таки. Можно легко запутаться, если это не разделять
|
||
itSub('[Negative] FinCouncil cannot add/remove a TechComm member', async ({helper}) => { | ||
const newCommMember = helper.arrange.createEmptyAccount(); | ||
const addMemberProposal = helper.council.membership.addMemberCall(newCommMember.address); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Не тот коллектив! Надо поправить -- тут надо проверять тех коммитет
|
||
itSub('[Negative] FinCouncil member cannot add/remove a TechComm member', async ({helper}) => { | ||
const newCommMember = helper.arrange.createEmptyAccount(); | ||
const addMemberProposal = helper.council.membership.addMemberCall(newCommMember.address); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Тоже неверный коллектив
}); | ||
|
||
|
||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Надо бы добавить тест на то, что ФинСовет/Член ФинСовета не может добавлять/удалять членов ФинСовета. Тоже самое про прайм мембера ФинСовета
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
По идее надо еще добавить тест в ТехКомм, что он не может добавлять членов ФинСовета.
Но это уже по желанию и с одобрения @uandysmith
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
По идее надо еще добавить тест в ТехКомм, что он не может добавлять членов ФинСовета.
такой есть
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Надо бы добавить тест на то, что ФинСовет/Член ФинСовета
Такой тоже есть. Прайм мембера добавлю
No description provided.