CoinbasePro: Skip specific tests due to API deprecation (#1649)

* CoinbasePro: Skip tests due to API deprecation

* CoinbasePro: Skip more tests
This commit is contained in:
Adrian Gallagher
2024-09-16 14:05:13 +10:00
committed by GitHub
parent d94b8af3e1
commit 3ebd2daf5c
3 changed files with 16 additions and 4 deletions

View File

@@ -606,9 +606,10 @@ var unsupportedAssets = []asset.Item{
var unsupportedExchangeNames = []string{
"testexch",
"alphapoint",
"bitflyer", // Bitflyer has many "ErrNotYetImplemented, which is true, but not what we care to test for here
"btse", // TODO rm once timeout issues resolved
"poloniex", // outdated API // TODO rm once updated
"bitflyer", // Bitflyer has many "ErrNotYetImplemented, which is true, but not what we care to test for here
"btse", // TODO rm once timeout issues resolved
"poloniex", // outdated API // TODO rm once updated
"coinbasepro", // outdated API // TODO rm once updated
}
// cryptoChainPerExchange holds the deposit address chain per exchange

View File

@@ -357,7 +357,8 @@ func TestSettingsPrint(t *testing.T) {
}
var unsupportedDefaultConfigExchanges = []string{
"poloniex", // poloniex has dropped support for the API GCT has implemented //TODO: drop this when supported
"poloniex", // poloniex has dropped support for the API GCT has implemented //TODO: drop this when supported
"coinbasepro", // deprecated API. TODO: Remove this when the Coinbase update is merged
}
func TestGetDefaultConfigurations(t *testing.T) {

View File

@@ -67,6 +67,8 @@ func TestMain(m *testing.M) {
}
func TestGetProducts(t *testing.T) {
t.Skip("API is deprecated")
_, err := c.GetProducts(context.Background())
if err != nil {
t.Errorf("Coinbase, GetProducts() Error: %s", err)
@@ -74,6 +76,8 @@ func TestGetProducts(t *testing.T) {
}
func TestGetOrderbook(t *testing.T) {
t.Skip("API is deprecated")
_, err := c.GetOrderbook(context.Background(), testPair.String(), 2)
if err != nil {
t.Error(err)
@@ -85,6 +89,8 @@ func TestGetOrderbook(t *testing.T) {
}
func TestGetTicker(t *testing.T) {
t.Skip("API is deprecated")
_, err := c.GetTicker(context.Background(), testPair.String())
if err != nil {
t.Error("GetTicker() error", err)
@@ -99,6 +105,8 @@ func TestGetTrades(t *testing.T) {
}
func TestGetHistoricRatesGranularityCheck(t *testing.T) {
t.Skip("API is deprecated")
end := time.Now()
start := end.Add(-time.Hour * 2)
_, err := c.GetHistoricCandles(context.Background(),
@@ -109,6 +117,8 @@ func TestGetHistoricRatesGranularityCheck(t *testing.T) {
}
func TestCoinbasePro_GetHistoricCandlesExtended(t *testing.T) {
t.Skip("API is deprecated")
start := time.Unix(1546300800, 0)
end := time.Unix(1577836799, 0)