Skip to content

Commit

Permalink
OpenAICountTokensServiceSpec - ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbanda committed Nov 29, 2023
1 parent e4841dc commit cef7884
Showing 1 changed file with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package io.cequence.openaiscala.service

import akka.testkit.TestKit
import io.cequence.openaiscala.domain.{
AssistantFunMessage,
BaseMessage,
ChatRole,
FunctionSpec,
Expand All @@ -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)

Expand Down

0 comments on commit cef7884

Please sign in to comment.