-
Notifications
You must be signed in to change notification settings - Fork 109
[contract] Add 3 Tests to config_tests.rsΒ #523
Copy link
Copy link
Open
Description
π Overview
Expand test coverage for the config module by adding 3 new tests.
β Tasks
- Add 3 new test functions to
contract/tests/config_tests.rs - Follow existing test patterns and helper functions
- Verify all tests pass
π§ͺ New Tests (3 total)
Test 1: Pause and Unpause Contract
#[test]
fn test_pause_and_unpause_contract() {
// Initialize contract
// Pause contract
// Verify operations fail
// Unpause contract
// Verify operations succeed
}Test 2: Update Platform Fee
#[test]
fn test_update_platform_fee() {
// Initialize contract with fee
// Update platform fee
// Verify new fee is applied
}Test 3: Config Access Control
#[test]
fn test_config_update_unauthorized() {
// Try to update config as non-admin
// Should fail with authorization error
}π Verification
- All 3 tests written
- All tests pass
- Tests follow existing patterns
- No clippy warnings
Reactions are currently unavailable