Skip to content

Commit 98025ef

Browse files
qdegraafmvantellingen
authored andcommitted
Add customer group changeName and setKey update actions
1 parent b0cf43b commit 98025ef

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/commercetools/testing/customer_groups.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
)
1111
from commercetools._schemas._review import ReviewUpdateSchema
1212
from commercetools.testing import abstract, utils
13+
from commercetools.testing.utils import update_attribute
1314

1415

1516
class CustomerGroupModel(abstract.BaseModel):
@@ -51,3 +52,8 @@ def urls(self):
5152
("^(?P<id>[^/]+)$", "POST", self.update_by_id),
5253
("^(?P<id>[^/]+)$", "DELETE", self.delete_by_id),
5354
]
55+
56+
_actions = {
57+
"changeName": update_attribute("name", "name"),
58+
"setKey": update_attribute("key", "key")
59+
}

0 commit comments

Comments
 (0)