block-sdk/tests/integration/integration_test.go
David Terpay 97e5731f52
rm (#530)
2024-06-24 12:56:06 -04:00

35 lines
852 B
Go

package integration_test
import (
"testing"
"github.com/cosmos/cosmos-sdk/codec/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/skip-mev/chaintestutil/encoding"
"github.com/stretchr/testify/suite"
testkeeper "github.com/skip-mev/block-sdk/v2/testutils/keeper"
auctiontypes "github.com/skip-mev/block-sdk/v2/x/auction/types"
)
type IntegrationTestSuite struct {
suite.Suite
testkeeper.TestKeepers
testkeeper.TestMsgServers
encCfg encoding.TestEncodingConfig
ctx sdk.Context
}
func TestIntegrationTestSuite(t *testing.T) {
suite.Run(t, new(IntegrationTestSuite))
}
func (s *IntegrationTestSuite) SetupTest() {
s.encCfg = encoding.MakeTestEncodingConfig(func(registry types.InterfaceRegistry) {
auctiontypes.RegisterInterfaces(registry)
})
s.ctx, s.TestKeepers, s.TestMsgServers = testkeeper.NewTestSetup(s.T())
}