Skip to content

Commit

Permalink
remove mock
Browse files Browse the repository at this point in the history
  • Loading branch information
facundomedica committed Sep 28, 2024
1 parent 3f76520 commit 1f7069a
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions x/authz/keeper/genesis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"testing"
"time"

"github.com/golang/mock/gomock"
"github.com/stretchr/testify/suite"

"cosmossdk.io/core/header"
Expand All @@ -14,7 +13,6 @@ import (
storetypes "cosmossdk.io/store/types"
"cosmossdk.io/x/authz/keeper"
authzmodule "cosmossdk.io/x/authz/module"
authztestutil "cosmossdk.io/x/authz/testutil"
bank "cosmossdk.io/x/bank/types"

"github.com/cosmos/cosmos-sdk/baseapp"
Expand All @@ -37,11 +35,10 @@ var (
type GenesisTestSuite struct {
suite.Suite

ctx sdk.Context
keeper keeper.Keeper
baseApp *baseapp.BaseApp
accountKeeper *authztestutil.MockAccountKeeper
encCfg moduletestutil.TestEncodingConfig
ctx sdk.Context
keeper keeper.Keeper
baseApp *baseapp.BaseApp
encCfg moduletestutil.TestEncodingConfig
}

func (suite *GenesisTestSuite) SetupTest() {
Expand All @@ -52,11 +49,6 @@ func (suite *GenesisTestSuite) SetupTest() {

suite.encCfg = moduletestutil.MakeTestEncodingConfig(codectestutil.CodecOptions{}, authzmodule.AppModule{})

// gomock initializations
ctrl := gomock.NewController(suite.T())
suite.accountKeeper = authztestutil.NewMockAccountKeeper(ctrl)
suite.accountKeeper.EXPECT().AddressCodec().Return(addresscodec.NewBech32Codec("cosmos")).AnyTimes()

suite.baseApp = baseapp.NewBaseApp(
"authz",
log.NewNopLogger(),
Expand Down

0 comments on commit 1f7069a

Please sign in to comment.