-
Notifications
You must be signed in to change notification settings - Fork 693
Expand file tree
/
Copy pathsuite_test.go
More file actions
33 lines (25 loc) · 829 Bytes
/
suite_test.go
File metadata and controls
33 lines (25 loc) · 829 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package gov_test
import (
"testing"
"time"
"github.com/stretchr/testify/suite"
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/osmosis-labs/osmosis/v10/app"
"github.com/osmosis-labs/osmosis/v10/x/superfluid/keeper"
"github.com/osmosis-labs/osmosis/v10/app/apptesting"
)
type KeeperTestSuite struct {
apptesting.KeeperTestHelper
ctx sdk.Context
querier keeper.Querier
app *app.OsmosisApp
}
func (suite *KeeperTestSuite) SetupTest() {
suite.app = app.Setup(false)
suite.ctx = suite.app.BaseApp.NewContext(false, tmproto.Header{Height: 1, ChainID: "osmosis-1", Time: time.Now().UTC()})
suite.querier = keeper.NewQuerier(*suite.app.SuperfluidKeeper)
}
func TestKeeperTestSuite(t *testing.T) {
suite.Run(t, new(KeeperTestSuite))
}