Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keys: CLI Remove Viper #6613

Merged
merged 16 commits into from
Jul 6, 2020
Merged
Prev Previous commit
Next Next commit
keys: Fix root tests
  • Loading branch information
alexanderbez committed Jul 6, 2020
commit c853ab12ff07833812801bac578546b156456859
12 changes: 0 additions & 12 deletions client/keys/root_test.go
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
package keys

import (
"os"
"testing"

"github.com/spf13/viper"
"github.com/stretchr/testify/assert"

"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/cosmos/cosmos-sdk/crypto/keyring"
sdk "github.com/cosmos/cosmos-sdk/types"
)

func TestCommands(t *testing.T) {
Expand All @@ -19,9 +13,3 @@ func TestCommands(t *testing.T) {
// Commands are registered
assert.Equal(t, 10, len(rootCommands.Commands()))
}

func TestMain(m *testing.M) {
viper.Set(flags.FlagKeyringBackend, keyring.BackendTest)
viper.Set(flagCoinType, sdk.CoinType)
os.Exit(m.Run())
}