Skip to content

Commit

Permalink
Merge pull request #427 from WolframResearch/feature/current-chat-set…
Browse files Browse the repository at this point in the history
…tings-test

Add a test for #426
  • Loading branch information
rhennigan authored Oct 24, 2023
2 parents 470354f + d608fe4 commit 0d92df8
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Tests/CurrentChatSettings.wlt
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,26 @@ VerificationTest[
SameTest -> MatchQ,
TestID -> "CurrentChatSettings-ChatBlocks@@Tests/CurrentChatSettings.wlt:91,1-106,2"
]

(* ::**************************************************************************************************************:: *)
(* ::Section::Closed:: *)
(*Regression Tests*)

(* ::**************************************************************************************************************:: *)
(* ::Subsection::Closed:: *)
(*#426*)
VerificationTest[
Module[ { model = None, nbo },
WithCleanup[
nbo = CreateNotebook[
DockedCells -> { Cell @ BoxData @ ToBoxes @ Dynamic[ model = CurrentChatSettings[ "Model" ] ] }
],
TimeConstrained[ While[ model === None, Pause[ 0.1 ] ], 5 ];
model,
NotebookClose @ nbo
]
],
Except[ _? FailureQ ],
SameTest -> MatchQ,
TestID -> "CurrentChatSettings-Regression@@Tests/CurrentChatSettings.wlt:115,1-129,2"
]

0 comments on commit 0d92df8

Please sign in to comment.