Skip to content
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

Merged
merged 5 commits into from
Jun 5, 2024
Merged

Tests/fin council #1070

merged 5 commits into from
Jun 5, 2024

Conversation

Maksandre
Copy link
Contributor

No description provided.

@uandysmith uandysmith merged commit ed0719f into feature/financial-council Jun 5, 2024
@uandysmith uandysmith deleted the tests/fin-council branch June 5, 2024 10:13

await expect(helper.finCouncil.collective.execute(
finCounselors.andy,
helper.democracy.vetoExternalCall(preimageHash),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А мы и в других тестах не проверяем, что 100% некого органа НЕ может ветировать демократию?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

В тех комитете мы проверяем что member может вето
В консулах вето демократии не проверяется вообще.

Copy link
Contributor Author

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}) => {
Copy link
Contributor

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}) => {
Copy link
Contributor

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}) => {
Copy link
Contributor

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) {
Copy link
Contributor

@mrshiposha mrshiposha Jun 5, 2024

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);
Copy link
Contributor

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);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Тоже неверный коллектив

});


});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Надо бы добавить тест на то, что ФинСовет/Член ФинСовета не может добавлять/удалять членов ФинСовета. Тоже самое про прайм мембера ФинСовета

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

По идее надо еще добавить тест в ТехКомм, что он не может добавлять членов ФинСовета.
Но это уже по желанию и с одобрения @uandysmith

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

По идее надо еще добавить тест в ТехКомм, что он не может добавлять членов ФинСовета.

такой есть

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Надо бы добавить тест на то, что ФинСовет/Член ФинСовета

Такой тоже есть. Прайм мембера добавлю

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants