From 3cffeee863eaac6af1bec6db179a77a30ced81dc Mon Sep 17 00:00:00 2001 From: alperozturk Date: Wed, 4 Dec 2024 11:42:07 +0100 Subject: [PATCH] update tests Signed-off-by: alperozturk --- .../nextcloud/client/assistant/AssistantRepositoryTests.kt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/src/androidTest/java/com/nextcloud/client/assistant/AssistantRepositoryTests.kt b/app/src/androidTest/java/com/nextcloud/client/assistant/AssistantRepositoryTests.kt index 6895f6e3b9..cd86391620 100644 --- a/app/src/androidTest/java/com/nextcloud/client/assistant/AssistantRepositoryTests.kt +++ b/app/src/androidTest/java/com/nextcloud/client/assistant/AssistantRepositoryTests.kt @@ -10,7 +10,6 @@ package com.nextcloud.client.assistant import com.nextcloud.client.assistant.repository.AssistantRepository import com.owncloud.android.AbstractOnServerIT import com.owncloud.android.lib.resources.assistant.model.TaskTypeData -import com.owncloud.android.lib.resources.assistant.model.toTaskTypeDataList import com.owncloud.android.lib.resources.status.NextcloudVersion import org.junit.Assert.assertTrue import org.junit.Before @@ -37,7 +36,7 @@ class AssistantRepositoryTests : AbstractOnServerIT() { val result = sut?.getTaskTypes() assertTrue(result?.isSuccess == true) - val taskTypes = result?.resultData?.toTaskTypeDataList() + val taskTypes = result?.resultData assertTrue(taskTypes?.isNotEmpty() == true) } @@ -68,7 +67,9 @@ class AssistantRepositoryTests : AbstractOnServerIT() { val taskType = TaskTypeData( "core:text2text", "Free text to text prompt", - "Runs an arbitrary prompt through a language model that returns a reply" + "Runs an arbitrary prompt through a language model that returns a reply", + null, + null ) val result = sut?.createTask(input, taskType) assertTrue(result?.isSuccess == true)