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

Democracy #350

Merged
merged 7 commits into from
Sep 18, 2023
Merged

Democracy #350

merged 7 commits into from
Sep 18, 2023

Conversation

pifragile
Copy link
Contributor

#phase is 9, registering
print(client.purge_community_ceremony(cid, 1, 8))
register_participants_and_perform_meetup(client, cid, accounts)
cindex = 9
Copy link
Member

Choose a reason for hiding this comment

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

that's brittle. we should not assume the same order of tests forever.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is exactly why i have been saying for a long time that we need to refactor the integration tests :)

client.update_proposal_state("//Alice", 1)
proposals = client.list_proposals()
print(proposals)
if('Approved' not in proposals):
Copy link
Member

@brenzi brenzi Sep 18, 2023

Choose a reason for hiding this comment

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

within the same testing time we could test 3 parallel proposals to increase test coverage:

  1. 2x Aye, 1x Nay
  2. 1x Aye, 2x Nay
  3. no votes

Moreover, it would be nice to test enactment too, not just approval
(pardon, I know you haven't asked for the review just yet ;-)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure! now in the light of very limited time remaining from my side, where to put the focus? this, or the remaining tasks for the accounting dashboard?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated tracking issue accordningly
encointer/pallets#347

@brenzi brenzi self-requested a review September 18, 2023 15:17
Copy link
Member

@brenzi brenzi left a comment

Choose a reason for hiding this comment

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

LGTM. Leftovers can be resolved later

@brenzi brenzi merged commit eae0a69 into master Sep 18, 2023
13 checks passed
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.

integrate democracy
2 participants