Added test file for OKCoin

This commit is contained in:
Ryan O'Hara-Reid
2017-11-23 11:29:38 +11:00
parent 48d07d48dd
commit 061e2a239d

View File

@@ -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)
}