This commit is contained in:
irlndts 2018-03-12 19:31:50 +03:00
parent d1095bc769
commit 69ef2a5d9a

View File

@ -9,23 +9,12 @@ const (
testToken = "" testToken = ""
) )
func check(t *testing.T, e error) {
if e != nil {
t.Error(e)
}
}
func assert(t *testing.T, condition bool, assertion string) {
if !condition {
t.Errorf("Assertion failed: %v", assertion)
}
}
func initDiscogsClient(t *testing.T, options *Options) *Client { func initDiscogsClient(t *testing.T, options *Options) *Client {
if options == nil { if options == nil {
options = &Options{ options = &Options{
UserAgent: testUserAgent, UserAgent: testUserAgent,
Currency: "USD", Currency: "USD",
Token: testToken,
} }
} }