@@ -467,15 +467,15 @@ def test_remove_action(self):
467467 assert expression_attribute_values == {}
468468
469469 def test_add_action (self ):
470- action = Path ('foo' ).update (0 )
470+ action = Path ('foo' ).add (0 )
471471 placeholder_names , expression_attribute_values = {}, {}
472472 expression = action .serialize (placeholder_names , expression_attribute_values )
473473 assert expression == "#0 :0"
474474 assert placeholder_names == {'foo' : '#0' }
475475 assert expression_attribute_values == {':0' : {'N' : '0' }}
476476
477477 def test_add_action_set (self ):
478- action = NumberSetAttribute (attr_name = 'foo' ).update ({'NS' : ['0' ]})
478+ action = NumberSetAttribute (attr_name = 'foo' ).add ({'NS' : ['0' ]})
479479 placeholder_names , expression_attribute_values = {}, {}
480480 expression = action .serialize (placeholder_names , expression_attribute_values )
481481 assert expression == "#0 :0"
@@ -484,10 +484,10 @@ def test_add_action_set(self):
484484
485485 def test_add_action_list (self ):
486486 with self .assertRaises (ValueError ):
487- Path ('foo' ).update ({'L' : [{'N' : '0' }]})
487+ Path ('foo' ).add ({'L' : [{'N' : '0' }]})
488488
489489 def test_delete_action (self ):
490- action = NumberSetAttribute (attr_name = 'foo' ).difference_update ({'NS' : ['0' ]})
490+ action = NumberSetAttribute (attr_name = 'foo' ).delete ({'NS' : ['0' ]})
491491 placeholder_names , expression_attribute_values = {}, {}
492492 expression = action .serialize (placeholder_names , expression_attribute_values )
493493 assert expression == "#0 :0"
@@ -496,14 +496,14 @@ def test_delete_action(self):
496496
497497 def test_delete_action_non_set (self ):
498498 with self .assertRaises (ValueError ):
499- Path ('foo' ).difference_update ({'N' : '0' })
499+ Path ('foo' ).delete ({'N' : '0' })
500500
501501 def test_update (self ):
502502 update = Update (
503503 self .attribute .set ({'S' : 'bar' }),
504504 self .attribute .remove (),
505- self .attribute .update ({'N' : '0' }),
506- self .attribute .difference_update ({'NS' : ['0' ]})
505+ self .attribute .add ({'N' : '0' }),
506+ self .attribute .delete ({'NS' : ['0' ]})
507507 )
508508 placeholder_names , expression_attribute_values = {}, {}
509509 expression = update .serialize (placeholder_names , expression_attribute_values )
0 commit comments