getLocalIdByUUID,
getVideo,
getVideosList,
+ ImportsCommand,
removeVideo,
ServerInfo,
setAccessTokensToServers,
userLogin,
waitJobs
} from '../../../shared/extra-utils'
-import { getYoutubeVideoUrl } from '../../../shared/extra-utils/videos/video-imports'
describe('Test CLI wrapper', function () {
let server: ServerInfo
this.timeout(60000)
- const params = `--target-url ${getYoutubeVideoUrl()} --channel-name user_channel`
+ const params = `--target-url ${ImportsCommand.getYoutubeVideoUrl()} --channel-name user_channel`
await cliCommand.execWithEnv(`${cmd} import ${params}`)
})
this.timeout(60000)
- const params = `--target-url ${getYoutubeVideoUrl()} --channel-name user_channel --video-name toto --nsfw --support support`
+ const params = `--target-url ${ImportsCommand.getYoutubeVideoUrl()} ` +
+ `--channel-name user_channel --video-name toto --nsfw --support support`
await cliCommand.execWithEnv(`${cmd} import ${params}`)
await waitJobs([ server ])