Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bitstamp/Kraken: Enhance test coverage #1423

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
1a1a465
Bitstamp: Improve GetAccountTradingFees
Beadko Sep 13, 2023
d4d77d4
Bitstamp: Improve test coverage
Beadko Oct 27, 2023
12d188e
Bitstamp: Improve TestWithdrawInternationalBank and TestWithdrawFiat
Beadko Oct 30, 2023
88ccc6a
Bitstamp: Fix the failing tests WIP
Beadko Nov 18, 2023
baf6238
Bitstamp: Fix TestWithdraw mockTest
Beadko Nov 18, 2023
ae6ab9e
Bitstamp: Fix TestWithdrawFiat
Beadko Nov 18, 2023
224bfb6
Bitstamp: Fix TestWithdrawInternationalBank
Beadko Nov 18, 2023
75123bb
Bitstamp: Simplify conditions in TestGetDepositAddress
Beadko Nov 18, 2023
e2ea8c8
Bitstamp: Switch Ws functions Errors to assert.Error
Beadko Nov 18, 2023
213c50c
Bitstamp: Fix TestSubmitOrder, update other errors
Beadko Nov 19, 2023
f06e4da
Bitstamp: Fix TestGetOrderStatus, amend error comments
Beadko Nov 19, 2023
8b95b2b
Bitstamp: Fix TestGetOrderInfo
Beadko Nov 19, 2023
c9afbf2
Bitstamp: Fix TestTransferAccountBalance
Beadko Nov 20, 2023
0333e47
Bitstamp: Update TestGetWithdrawalsHistory, fix linter errors
Beadko Dec 9, 2023
b342bc6
Bitstamp: Update TestGetRecentTrades, change type Withdrawal.Requests…
Beadko Dec 9, 2023
4d94504
Bitstamp: Update TestGetDepositAddress, TestBitstamp_OHLC, TestBitsta…
Beadko Dec 9, 2023
25fe171
Bitstamp: Fix tests
Beadko Dec 11, 2023
da7749b
Bitstamp: Fix the typos and linter, add a side test to TestGetTicker
Beadko Dec 19, 2023
1bc8c96
Bitstamp: Update WithdrawFiat and WithdrawFiatFundsToInternationalBank
Beadko Dec 20, 2023
057e4ac
Bitstamp: Fix the error description
Beadko Dec 22, 2023
bc91cb7
Bitstamp: Fixup SkipTestIfCredentialsUnset
Beadko Jan 16, 2024
322f9e8
Bitstamp: Fixup tests
Beadko Jan 17, 2024
ae722d4
Bitstamp: Fix panic, skip live test TestWithdraw, amend mocktest
Beadko Jan 22, 2024
43b0285
Bitstamp: Fixup
Beadko Jan 24, 2024
20eec2a
Bitstamp: Fixup
Beadko Jan 27, 2024
6d65200
Bitstamp: Fixup
Beadko Jan 30, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions exchanges/bitstamp/bitstamp_mock_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,15 @@ func TestMain(m *testing.M) {
}
b.SkipAuthCheck = true
bitstampConfig.API.AuthenticatedSupport = true
bitstampConfig.API.Credentials.Key = apiKey
bitstampConfig.API.Credentials.Secret = apiSecret
bitstampConfig.API.Credentials.ClientID = customerID
if apiKey != "" {
bitstampConfig.API.Credentials.Key = apiKey
}
if apiSecret != "" {
bitstampConfig.API.Credentials.Secret = apiSecret
}
if customerID != "" {
bitstampConfig.API.Credentials.ClientID = customerID
}
b.SetDefaults()
b.Websocket = sharedtestvalues.NewTestWebsocket()
err = b.Setup(bitstampConfig)
Expand Down
Loading
Loading