Skip to content

Commit

Permalink
Added test file for OKCoin
Browse files Browse the repository at this point in the history
  • Loading branch information
shazbert committed Nov 23, 2017
1 parent 48d07d4 commit 061e2a2
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions exchanges/okcoin/okcoin_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
package okcoin

import (
"testing"

"github.com/thrasher-/gocryptotrader/config"
)

var o OKCoin

// Please supply your own APIKEYS here for due diligence testing

const (
apiKey = ""
apiSecret = ""
)

func TestSetDefaults(t *testing.T) {
o.SetDefaults()
}

func TestSetup(t *testing.T) {
cfg := config.GetConfig()
cfg.LoadConfig("../../testdata/configtest.json")
okcoinConfig, err := cfg.GetExchangeConfig("OKCOIN International")
if err != nil {
t.Error("Test Failed - OKCoin Setup() init error")
}

okcoinConfig.AuthenticatedAPISupport = true
okcoinConfig.APIKey = apiKey
okcoinConfig.APISecret = apiSecret

o.Setup(okcoinConfig)
}

0 comments on commit 061e2a2

Please sign in to comment.