File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed
Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -541,7 +541,7 @@ def update_target(
541541 data ['name' ] = name
542542
543543 if width is not None :
544- data ['width' ] = name
544+ data ['width' ] = width
545545
546546 if image is not None :
547547 image_data = image .getvalue ()
Original file line number Diff line number Diff line change @@ -448,17 +448,28 @@ def test_update_target(
448448 name = 'x' ,
449449 width = 1 ,
450450 image = high_quality_image ,
451+ active_flag = True ,
451452 )
452453 client .wait_for_target_processed (target_id = target_id )
453- client .update_target (target_id = target_id )
454+ client .update_target (
455+ target_id = target_id ,
456+ name = 'x2' ,
457+ width = 2 ,
458+ active_flag = False ,
459+ )
460+
461+ target_details = client .get_target_record (target_id = target_id )
462+ assert target_details ['name' ] == 'x2'
463+ assert target_details ['width' ] == 2
464+ assert not target_details ['active_flag' ]
454465
455466 def test_no_fields_given (
456467 self ,
457468 client : VWS ,
458469 high_quality_image : io .BytesIO ,
459470 ) -> None :
460471 """
461- It is possible to update a target .
472+ It is possible to give no update fields .
462473 """
463474 target_id = client .add_target (
464475 name = 'x' ,
You can’t perform that action at this time.
0 commit comments