mirror of
https://github.com/rclone/rclone
synced 2024-12-19 09:05:56 +01:00
core/command: Add version command instead of ls
This commit is contained in:
parent
5549fd25fc
commit
54fc2821cd
@ -5,8 +5,6 @@ import (
|
||||
"runtime"
|
||||
"testing"
|
||||
|
||||
"github.com/rclone/rclone/fstest"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
@ -125,17 +123,11 @@ func TestCoreQuit(t *testing.T) {
|
||||
// core/command: Runs a raw rclone command
|
||||
func TestCoreCommand(t *testing.T) {
|
||||
call := Calls.Get("core/command")
|
||||
r := fstest.NewRun(t)
|
||||
defer r.Finalise()
|
||||
|
||||
in := Params{
|
||||
"command": "ls",
|
||||
"opt": map[string]string{
|
||||
"max-depth": "1",
|
||||
},
|
||||
"arg": []string{
|
||||
r.FremoteName,
|
||||
},
|
||||
"command": "version",
|
||||
"opt": map[string]string{},
|
||||
"arg": []string{},
|
||||
}
|
||||
got, err := call.Fn(context.Background(), in)
|
||||
require.NoError(t, err)
|
||||
|
Loading…
Reference in New Issue
Block a user