Skip to content

Conversation

@bonnie57
Copy link
Collaborator

@bonnie57 bonnie57 commented Jul 8, 2025

Description

  • Add __init__.py to enable import path
  • Refactor permission unit tests
  • Add common fixtures
  • Fix story_client unit tests

@bonnie57 bonnie57 changed the title Refactor permission unit tests Fix unit tests Jul 9, 2025
bonnie57 added 2 commits July 10, 2025 16:25
- Updated test cases for `set_permission` and `set_all_permissions` methods to improve coverage.
- Added tests for handling unregistered IP accounts, invalid signer addresses, and invalid transaction addresses.
- Introduced tests for creating permission signatures with validation for deadlines.
- Enhanced error handling in tests to ensure proper exception messages are raised.
- Removed hardcoded chain ID values and replaced them with the CHAIN_ID constant for better maintainability.
- Improved formatting of error messages for environment variable checks.
- Cleaned up unnecessary code related to Python path adjustments.
@bonnie57 bonnie57 force-pushed the feat/refactor-permission-unit-test branch from 0ffdf21 to b20ee01 Compare July 10, 2025 08:25
@lucas2brh lucas2brh merged commit 7074e92 into main Jul 10, 2025
12 checks passed
@lucas2brh lucas2brh deleted the feat/refactor-permission-unit-test branch July 10, 2025 13:06
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