Skip to content

Commit b0d3578

Browse files
committed
fix tests
1 parent 4f5d348 commit b0d3578

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

anthropic-client/src/test/scala/io/cequence/openaiscala/anthropic/service/impl/AnthropicServiceSpec.scala

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,49 +27,49 @@ class AnthropicServiceSpec extends AsyncWordSpec with GivenWhenThen {
2727

2828
"should throw AnthropicScalaUnauthorizedException when 401" ignore {
2929
recoverToSucceededIf[AnthropicScalaUnauthorizedException] {
30-
TestFactory.mockedService401().createMessage(None, irrelevantMessages, settings)
30+
TestFactory.mockedService401().createMessage(irrelevantMessages, None, settings)
3131
}
3232
}
3333

3434
"should throw AnthropicScalaUnauthorizedException when 403" ignore {
3535
recoverToSucceededIf[AnthropicScalaUnauthorizedException] {
36-
TestFactory.mockedService403().createMessage(None, irrelevantMessages, settings)
36+
TestFactory.mockedService403().createMessage(irrelevantMessages, None, settings)
3737
}
3838
}
3939

4040
"should throw AnthropicScalaNotFoundException when 404" ignore {
4141
recoverToSucceededIf[AnthropicScalaNotFoundException] {
42-
TestFactory.mockedService404().createMessage(None, irrelevantMessages, settings)
42+
TestFactory.mockedService404().createMessage(irrelevantMessages, None, settings)
4343
}
4444
}
4545

4646
"should throw AnthropicScalaNotFoundException when 429" ignore {
4747
recoverToSucceededIf[AnthropicScalaRateLimitException] {
48-
TestFactory.mockedService429().createMessage(None, irrelevantMessages, settings)
48+
TestFactory.mockedService429().createMessage(irrelevantMessages, None, settings)
4949
}
5050
}
5151

5252
"should throw AnthropicScalaServerErrorException when 500" ignore {
5353
recoverToSucceededIf[AnthropicScalaServerErrorException] {
54-
TestFactory.mockedService500().createMessage(None, irrelevantMessages, settings)
54+
TestFactory.mockedService500().createMessage(irrelevantMessages, None, settings)
5555
}
5656
}
5757

5858
"should throw AnthropicScalaEngineOverloadedException when 529" ignore {
5959
recoverToSucceededIf[AnthropicScalaEngineOverloadedException] {
60-
TestFactory.mockedService529().createMessage(None, irrelevantMessages, settings)
60+
TestFactory.mockedService529().createMessage(irrelevantMessages, None, settings)
6161
}
6262
}
6363

6464
"should throw AnthropicScalaClientException when 400" ignore {
6565
recoverToSucceededIf[AnthropicScalaClientException] {
66-
TestFactory.mockedService400().createMessage(None, irrelevantMessages, settings)
66+
TestFactory.mockedService400().createMessage(irrelevantMessages, None, settings)
6767
}
6868
}
6969

7070
"should throw AnthropicScalaClientException when unknown error code" ignore {
7171
recoverToSucceededIf[AnthropicScalaClientException] {
72-
TestFactory.mockedServiceOther().createMessage(None, irrelevantMessages, settings)
72+
TestFactory.mockedServiceOther().createMessage(irrelevantMessages, None, settings)
7373
}
7474
}
7575

0 commit comments

Comments
 (0)