From cef78844c8d20b0e237da1480285fb043c79250a Mon Sep 17 00:00:00 2001 From: peterbanda Date: Wed, 29 Nov 2023 14:29:41 +0100 Subject: [PATCH] OpenAICountTokensServiceSpec - ignore --- .../service/OpenAICountTokensServiceSpec.scala | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/openai-count-tokens/src/test/scala/io/cequence/openaiscala/service/OpenAICountTokensServiceSpec.scala b/openai-count-tokens/src/test/scala/io/cequence/openaiscala/service/OpenAICountTokensServiceSpec.scala index 91c6e725..945ccc9a 100644 --- a/openai-count-tokens/src/test/scala/io/cequence/openaiscala/service/OpenAICountTokensServiceSpec.scala +++ b/openai-count-tokens/src/test/scala/io/cequence/openaiscala/service/OpenAICountTokensServiceSpec.scala @@ -2,7 +2,6 @@ package io.cequence.openaiscala.service import akka.testkit.TestKit import io.cequence.openaiscala.domain.{ - AssistantFunMessage, BaseMessage, ChatRole, FunctionSpec, @@ -12,35 +11,31 @@ import io.cequence.openaiscala.domain.{ } import io.cequence.openaiscala.domain.settings.CreateChatCompletionSettings import akka.actor.ActorSystem -import akka.stream.Materializer import com.typesafe.config.{Config, ConfigFactory} import org.scalatestplus.mockito.MockitoSugar import org.scalatest.concurrent.ScalaFutures import org.scalatest.matchers.should.Matchers import org.scalatest.wordspec.AnyWordSpecLike -import org.scalatest.{BeforeAndAfterAll, Tag} +import org.scalatest.{BeforeAndAfterAll, Ignore, Tag} import scala.collection.immutable.ListMap import scala.concurrent.ExecutionContext.Implicits.global import scala.concurrent.duration.DurationInt -// TODO: ignore this test +@Ignore class OpenAICountTokensServiceSpec - extends AnyWordSpecLike + extends TestKit(ActorSystem("OpenAICountTokensServiceSpec")) + with AnyWordSpecLike with Matchers with BeforeAndAfterAll with MockitoSugar with ScalaFutures { -// extends TestKit(ActorSystem("OpenAICountTokensServiceSpec")) - protected implicit val patience: PatienceConfig = PatienceConfig(timeout = 10.seconds) trait TestCase extends OpenAICountTokensHelper { protected lazy val config: Config = ConfigFactory.load() private val verbose = false - implicit val system: ActorSystem = ActorSystem() - implicit val materializer: Materializer = Materializer(system) private lazy val validateWithChatGPT = config.getBoolean("validateWithChatGPT") protected lazy val openAIServiceExternal: OpenAIService = OpenAIServiceFactory(config)