Prathamesh Musale
0af44b5f17
All checks were successful
Integration Tests / test-integration (push) Successful in 2m17s
- Setup integration tests following pattern suggested in cosmos-sdk docs: https://docs.cosmos.network/v0.50/build/building-modules/testing#integration-tests - Add tests for laconic modules query services - Setup a CI workflow to run the integration tests Reviewed-on: deep-stack/laconic2d#11 Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com> Co-committed-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
31 lines
599 B
Go
31 lines
599 B
Go
package keeper_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
"github.com/stretchr/testify/suite"
|
|
|
|
integrationTest "git.vdb.to/cerc-io/laconic2d/tests/integration"
|
|
types "git.vdb.to/cerc-io/laconic2d/x/bond"
|
|
)
|
|
|
|
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))
|
|
}
|