Skip to content

Commit cf2f1b2

Browse files
qdegraaftleguijt
authored andcommitted
Make format
1 parent ae318df commit cf2f1b2

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

src/commercetools/testing/shipping_methods.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,9 @@ def urls(self):
234234
"removeShippingRate": remove_shipping_rate,
235235
"removeZone": remove_shipping_zone,
236236
"setDescription": update_attribute("description", "description"),
237-
"setLocalizedDescription": update_attribute("localizedDescription", "localized_description"),
237+
"setLocalizedDescription": update_attribute(
238+
"localizedDescription", "localized_description"
239+
),
238240
"setKey": update_attribute("key", "key"),
239241
"setPredicate": update_attribute("predicate", "predicate"),
240242
}

tests/platform/test_service_shipping_methods.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,13 @@ def test_shipping_method_update(old_client):
101101
shipping_method = old_client.shipping_methods.update_by_id(
102102
id=shipping_method.id,
103103
version=shipping_method.version,
104-
actions=[models.ShippingMethodSetLocalizedDescriptionAction(
105-
localized_description=models.LocalizedString({"en": "a new lstring"}))],
104+
actions=[
105+
models.ShippingMethodSetLocalizedDescriptionAction(
106+
localized_description=models.LocalizedString({"en": "a new lstring"})
107+
)
108+
],
106109
)
107110

108-
assert shipping_method.localized_description == models.LocalizedString({"en": "a new lstring"})
111+
assert shipping_method.localized_description == models.LocalizedString(
112+
{"en": "a new lstring"}
113+
)

0 commit comments

Comments
 (0)