add proposalCreation Sample test
This commit is contained in:
parent
76911ed5d6
commit
862e9b6079
7 changed files with 267 additions and 12 deletions
38
agora-test/Spec/Proposal.hs
Normal file
38
agora-test/Spec/Proposal.hs
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
{-# LANGUAGE QuasiQuotes #-}
|
||||
|
||||
{- |
|
||||
Module : Spec.Proposal
|
||||
Maintainer : emi@haskell.fyi
|
||||
Description: Tests for Proposal policy and validator
|
||||
|
||||
Tests for Proposal policy and validator
|
||||
-}
|
||||
module Spec.Proposal (tests) where
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
import Agora.Proposal (proposalPolicy)
|
||||
import Spec.Sample.Proposal qualified as Proposal
|
||||
import Spec.Util (policySucceedsWith)
|
||||
import Test.Tasty (TestTree, testGroup)
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
-- | Stake tests.
|
||||
tests :: [TestTree]
|
||||
tests =
|
||||
[ testGroup
|
||||
"policy"
|
||||
[ policySucceedsWith
|
||||
"stakeCreation"
|
||||
(proposalPolicy Proposal.proposal)
|
||||
()
|
||||
Proposal.proposalCreation
|
||||
]
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue