2024-02-29 11:54:35 +00:00
|
|
|
package keeper_test
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
"github.com/stretchr/testify/suite"
|
|
|
|
|
2024-04-01 09:57:26 +00:00
|
|
|
integrationTest "git.vdb.to/cerc-io/laconicd/tests/integration"
|
|
|
|
types "git.vdb.to/cerc-io/laconicd/x/bond"
|
2024-02-29 11:54:35 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type KeeperTestSuite struct {
|
|
|
|
suite.Suite
|
|
|
|
integrationTest.TestFixture
|
|
|
|
|
|
|
|
queryClient types.QueryClient
|
|
|
|
}
|
|
|
|
|
|
|
|
func (kts *KeeperTestSuite) SetupTest() {
|
|
|
|
err := kts.TestFixture.Setup()
|
|
|
|
assert.Nil(kts.T(), err)
|
|
|
|
|
|
|
|
qr := kts.App.QueryHelper()
|
|
|
|
kts.queryClient = types.NewQueryClient(qr)
|
|
|
|
}
|
|
|
|
|
|
|
|
func TestBondKeeperTestSuite(t *testing.T) {
|
|
|
|
suite.Run(t, new(KeeperTestSuite))
|
|
|
|
}
|