@@ -331,24 +331,30 @@ def test_skip_runs(self, mock_skip):
331331 @mock .patch ("polyaxon._sdk.api.OrganizationsV1Api.tag_organization_runs" )
332332 def test_tag_runs (self , mock_tag ):
333333 """Test batch tagging runs"""
334- data = {"uuids" : [self .uuid1 , self .uuid2 ], "tags" : ["production" , "validated" ]}
334+ uuids = [self .uuid1 , self .uuid2 ]
335+ tags = ["production" , "validated" ]
335336
336337 client = OrganizationClient (owner = self .owner )
337- client .tag_runs (data )
338+ client .tag_runs (uuids , tags )
338339
339340 assert mock_tag .call_count == 1
340- mock_tag .assert_called_with (self .owner , body = data )
341+ call_args = mock_tag .call_args
342+ assert call_args [1 ]["body" ].uuids == uuids
343+ assert call_args [1 ]["body" ].tags == tags
341344
342345 @mock .patch ("polyaxon._sdk.api.OrganizationsV1Api.transfer_organization_runs" )
343346 def test_transfer_runs (self , mock_transfer ):
344347 """Test transferring runs to different project"""
345- data = {"uuids" : [self .uuid1 , self .uuid2 ], "project" : "destination-project" }
348+ uuids = [self .uuid1 , self .uuid2 ]
349+ to_project = "destination-project"
346350
347351 client = OrganizationClient (owner = self .owner )
348- client .transfer_runs (data )
352+ client .transfer_runs (uuids , to_project )
349353
350354 assert mock_transfer .call_count == 1
351- mock_transfer .assert_called_with (self .owner , body = data )
355+ call_args = mock_transfer .call_args
356+ assert call_args [1 ]["body" ].uuids == uuids
357+ assert call_args [1 ]["body" ].project == to_project
352358
353359 # Version Management Tests
354360 def test_validate_kind (self ):
0 commit comments