25 lines
416 B
Go
25 lines
416 B
Go
|
package qbittorrent
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func TestClient_Login(t *testing.T) {
|
||
|
ctx := context.Background()
|
||
|
if err := c.Authentication().Login(ctx); err != nil {
|
||
|
t.Fatal(err)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func TestClient_Logout(t *testing.T) {
|
||
|
ctx := context.Background()
|
||
|
if err := c.Authentication().Login(ctx); err != nil {
|
||
|
t.Fatal(err)
|
||
|
}
|
||
|
|
||
|
if err := c.Authentication().Logout(ctx); err != nil {
|
||
|
t.Fatal(err)
|
||
|
}
|
||
|
}
|