MCPcopy Create free account
hub / github.com/Sifchain/sifnode / TestOpenCmd

Method TestOpenCmd

x/margin/client/cli/tx_test.go:55–71  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53}
54
55func (s *IntegrationTestSuite) TestOpenCmd() {
56 val := s.network.Validators[0]
57
58 // Use baseURL to make API HTTP requests or use val.RPCClient to make direct
59 // Tendermint RPC calls.
60 // ...
61 args := []string{
62 "--collateral_asset=rowan",
63 "--borrow_asset=atom",
64 "--collateral_amount=1000",
65 "--position=long",
66 "--from=" + val.Address.String(),
67 "-y",
68 }
69 _, err := testutilcli.ExecTestCLICmd(val.ClientCtx, cli.GetOpenCmd(), args)
70 require.NoError(s.T(), err)
71}
72
73func (s *IntegrationTestSuite) TestCloseCmd() {
74 val := s.network.Validators[0]

Callers

nothing calls this directly

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected