File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed
Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -188,24 +188,6 @@ def test_completed_task_invalid_artifact_type(self):
188188 history = [],
189189 )
190190
191- def test_new_task_with_invalid_context_id (self ):
192- """Test that new_task raises a ValueError for various invalid context_id formats."""
193- invalid_ids = ['not-a-uuid' , '' ]
194- for invalid_id in invalid_ids :
195- with self .subTest (invalid_id = invalid_id ):
196- with pytest .raises (
197- ValueError ,
198- match = f"Invalid context_id: '{ invalid_id } ' is not a valid UUID." ,
199- ):
200- new_task (
201- Message (
202- role = Role .user ,
203- parts = [Part (root = TextPart (text = 'test message' ))],
204- message_id = str (uuid .uuid4 ()),
205- context_id = invalid_id ,
206- )
207- )
208-
209191
210192if __name__ == '__main__' :
211193 unittest .main ()
You can’t perform that action at this time.
0 commit comments