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

Fixes: #294 Added test cases for UnauthorizedOperation error #552

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

Vaibhavsahu2810
Copy link
Contributor

Fixes #294

Description

Added tests for the UnauthorizedOperation error in the pallet/network-score module.

Goals

  • Validate that UnauthorizedOperation is returned correctly in all applicable scenarios.
  • Cover all functions that may return this error.

Copy link
Member

@vatsa287 vatsa287 left a comment

Choose a reason for hiding this comment

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

PR changes and the description does not match.
Please update any one of them.

@Vaibhavsahu2810
Copy link
Contributor Author

Vaibhavsahu2810 commented Jan 11, 2025

Hello @vatsa287 , earlier i have created unauthorized_operation_test in network-membership because in Implementation Details the reference test given was test_duplicate_member_request which validates error code MembershipAlreadyAcquired in network_membership that's why i got confused but now i created it for network_score

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.

[C4GT] Network-Score: Add tests for 'UnauthorizedOperation'
2 participants