Browse Source

tests: proposal: add configuration tests for veto

conectado 4 years ago
parent
commit
a21f965944

+ 10 - 0
runtime/src/proposals_configuration/sample_proposal_parameters.json

@@ -239,5 +239,15 @@
         "slashing_threshold_percentage": 6,
         "required_stake": 7,
         "constitutionality": 8
+    },
+    "veto_proposal_proposal": {
+        "voting_period": 1,
+        "grace_period": 2,
+        "approval_quorum_percentage": 3,
+        "approval_threshold_percentage": 4,
+        "slashing_quorum_percentage": 5,
+        "slashing_threshold_percentage": 6,
+        "required_stake": 7,
+        "constitutionality": 8
     }
 }

+ 9 - 0
runtime/src/proposals_configuration/tests.rs

@@ -228,3 +228,12 @@ fn proposal_parameters_are_initialized_unlock_blog_post_proposal() {
 
     assert_eq!(default_proposal_parameters(), actual_params);
 }
+
+// Enable during the conditional compilation tests.
+#[test]
+#[ignore]
+fn proposal_parameters_are_initialized_veto_proposal_proposal() {
+    let actual_params = super::UnlockBlogPostProposalParameters::get();
+
+    assert_eq!(default_proposal_parameters(), actual_params);
+}