add templates for samples and tests of governor

This commit is contained in:
fanghr 2022-05-02 19:06:16 +08:00
parent cfac755380
commit 62cd50c5cb
No known key found for this signature in database
GPG key ID: 35CD9A71CD5D5870
4 changed files with 29 additions and 0 deletions

View file

@ -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
]

View 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 = []

View 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

View file

@ -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