add templates for samples and tests of governor
This commit is contained in:
parent
cfac755380
commit
62cd50c5cb
4 changed files with 29 additions and 0 deletions
|
|
@ -10,6 +10,7 @@ import Test.Tasty (defaultMain, testGroup)
|
|||
|
||||
import Spec.AuthorityToken qualified as AuthorityToken
|
||||
import Spec.Effect.TreasuryWithdrawal qualified as TreasuryWithdrawal
|
||||
import Spec.Governor qualified as Governor
|
||||
import Spec.Model.MultiSig qualified as MultiSig
|
||||
import Spec.Proposal qualified as Proposal
|
||||
import Spec.Stake qualified as Stake
|
||||
|
|
@ -43,4 +44,7 @@ main =
|
|||
, testGroup
|
||||
"AuthorityToken tests"
|
||||
AuthorityToken.tests
|
||||
, testGroup
|
||||
"Governor tests"
|
||||
Governor.tests
|
||||
]
|
||||
|
|
|
|||
15
agora-test/Spec/Governor.hs
Normal file
15
agora-test/Spec/Governor.hs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{- |
|
||||
Module : Spec.Governor
|
||||
Maintainer : connor@mlabs.city
|
||||
Description: Tests for Governor policy and validator
|
||||
|
||||
Tests for Governor policy and validator
|
||||
-}
|
||||
module Spec.Governor (tests) where
|
||||
|
||||
import Test.Tasty (TestTree, testGroup)
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
tests :: [TestTree]
|
||||
tests = []
|
||||
8
agora-test/Spec/Sample/Governor.hs
Normal file
8
agora-test/Spec/Sample/Governor.hs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{- |
|
||||
Module : Spec.Sample.Governor
|
||||
Maintainer : connor@mlabs.city
|
||||
Description: Sample based testing for Governor utxos
|
||||
|
||||
This module tests primarily the happy path for Governor interactions
|
||||
-}
|
||||
module Spec.Sample.Governor () where
|
||||
|
|
@ -161,9 +161,11 @@ test-suite agora-test
|
|||
other-modules:
|
||||
Spec.AuthorityToken
|
||||
Spec.Effect.TreasuryWithdrawal
|
||||
Spec.Governor
|
||||
Spec.Model.MultiSig
|
||||
Spec.Proposal
|
||||
Spec.Sample.Effect.TreasuryWithdrawal
|
||||
Spec.Sample.Governor
|
||||
Spec.Sample.Proposal
|
||||
Spec.Sample.Shared
|
||||
Spec.Sample.Stake
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue