Skip to content

Commit

Permalink
"Refactor BilibiliClient credential in LangChainTests"
Browse files Browse the repository at this point in the history
  • Loading branch information
buhe committed Mar 6, 2024
1 parent 5babc0f commit 5f8ce91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/LangChainTests/langchain_swiftTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ Thought: dog
}

func testBilibilClient() async throws {
let client = BilibiliClient(credential: BilibiliCredential(sessin: "7c987c09%2C1722322455%2Cd8f13%2A21CjB8GNfrlOnsm4mTTEv4_hK764LWdNRZprUKH0iHdXdULinmCU-Bs7Y4YDUX3iKVG7YSVllzWFI5Nm5Za19NbDZsUHhqM0N6aEVEd3V6WFlZejJiM1lQS0UwQ3hpSjVleHlPZ0xwRTg4QkE3RDdiT3ZEeU1CcDlFRTVWal9YUXFaVHRrWFNPQ3pnIIEC", jct: "8b783b43d496a9f215405b4a65eecd6a"))
let client = BilibiliClient(credential: BilibiliCredential(sessin: "e0f5f5ef%2C1725005380%2Cb71c5%2A31CjD3aNTEjUzgdcs3TlxijwG1rF7pYn65uwh1XTuMp0-uwGpqU4K2I6GGjPtEdvioiKcSVjA3ajg4SnJOMXdsa2Zka21yN0JvRmJkeFREOFp0amVvejlFQ0FJT2p1MC1lcGZucTI0QzRnUk5VT09PYVJyZVFzYnFNQ2M0THZJRS1lVzJjem11M1R3IIEC", jct: "b4662a4c178853f2d1a31ef89b53c89a"))
let info = await client.fetchVideoInfo(bvid: "BV1iP411y7Vs")
XCTAssertNotNil(info)
XCTAssertNotEqual(info?.subtitle, "")
Expand Down

0 comments on commit 5f8ce91

Please sign in to comment.