qa/spelling: Add Codespell support (#1121)

* Add codespell support

* Fix paths

* Add HTML files to exclusion list
This commit is contained in:
Adrian Gallagher
2023-01-30 12:36:56 +11:00
committed by GitHub
parent c785ae73a7
commit a79e0d2b3e
108 changed files with 359 additions and 318 deletions

View File

@@ -104,7 +104,7 @@ func TestGetMarketDepths(t *testing.T) {
}
a, _ := l.GetMarketDepths(context.Background(), testCurrencyPair, "4", "0")
if len(a.Data.Asks) != 4 {
t.Errorf("asks length requested doesnt match the output")
t.Errorf("asks length requested doesn't match the output")
}
}
@@ -157,7 +157,7 @@ func TestGetUserInfo(t *testing.T) {
func TestCreateOrder(t *testing.T) {
t.Parallel()
if !areTestAPIKeysSet() || !canManipulateRealOrders {
t.Skip("skipping test, either api keys or manipulaterealorders isnt set correctly")
t.Skip("skipping test, either api keys or manipulaterealorders isn't set correctly")
}
cp := currency.NewPairWithDelimiter(currency.BTC.String(), currency.USDT.String(), "_")
_, err := l.CreateOrder(context.Background(), cp.Lower().String(), "what", 1231, 12314)
@@ -181,7 +181,7 @@ func TestCreateOrder(t *testing.T) {
func TestRemoveOrder(t *testing.T) {
t.Parallel()
if !areTestAPIKeysSet() || !canManipulateRealOrders {
t.Skip("skipping test, either api keys or manipulaterealorders isnt set correctly")
t.Skip("skipping test, either api keys or manipulaterealorders isn't set correctly")
}
cp := currency.NewPairWithDelimiter(currency.ETH.String(), currency.BTC.String(), "_")
_, err := l.RemoveOrder(context.Background(),
@@ -280,7 +280,7 @@ func TestGetWithdrawConfig(t *testing.T) {
func TestWithdraw(t *testing.T) {
t.Parallel()
if !areTestAPIKeysSet() || !canManipulateRealOrders {
t.Skip("skipping test, either api keys or manipulaterealorders isnt set correctly")
t.Skip("skipping test, either api keys or manipulaterealorders isn't set correctly")
}
_, err := l.Withdraw(context.Background(), "", "", "", "", "", "")
if err != nil {
@@ -365,7 +365,7 @@ func TestSubmitOrder(t *testing.T) {
func TestCancelOrder(t *testing.T) {
t.Parallel()
if !areTestAPIKeysSet() || !canManipulateRealOrders {
t.Skip("skipping test, either api keys or manipulaterealorders isnt set correctly")
t.Skip("skipping test, either api keys or manipulaterealorders isn't set correctly")
}
cp := currency.NewPairWithDelimiter(currency.ETH.String(), currency.BTC.String(), "_")
var a order.Cancel