Skip to content

test: governance, credential renewal/revocation-reason, course archiving coverage - #377

Merged
DeFiVC merged 2 commits into
ChainLearnOfficial:mainfrom
leojay-net:feat/issues-296-297-298-299-tests
Aug 30, 2026
Merged

test: governance, credential renewal/revocation-reason, course archiving coverage#377
DeFiVC merged 2 commits into
ChainLearnOfficial:mainfrom
leojay-net:feat/issues-296-297-298-299-tests

Conversation

@leojay-net

Copy link
Copy Markdown
Contributor

Adds the 4 requested test cases:

Note: written under a hard time constraint directly from existing setup helpers and contract signatures (grep only) — not run through cargo test in this pass. Please run CI on this PR before merging; happy to fix up any compile/assertion issues that surface.

Closes #296
Closes #297
Closes #298
Closes #299

…ons, course archiving

- tests/unit/token_tests.rs: full governance proposal lifecycle
  (create_proposal, voting power via balance, vote, execute_proposal).
- tests/unit/credential_tests.rs: renew_credential extends expiry;
  revoke_credential_with_reason stores a queryable reason.
- tests/unit/progress_tests.rs: archive_course rejects new enrollments
  while preserving existing learner progress.

Written under a hard time constraint from existing setup helpers and
contract signatures found via grep, not verified with cargo test in
this pass — please run CI/cargo test on this PR before merging.

Closes ChainLearnOfficial#296
Closes ChainLearnOfficial#297
Closes ChainLearnOfficial#298
Closes ChainLearnOfficial#299
@drips-wave

drips-wave Bot commented Aug 30, 2026

Copy link
Copy Markdown

@leojay-net Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@DeFiVC
DeFiVC merged commit 4c3bebd into ChainLearnOfficial:main Aug 30, 2026
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.

. Add test for course archiving . Add test for credential revocation reasons . Add test for credential renewal . Add test for token governance

2 participants