Skip to content

Commit 509805d

Browse files
committed
Fix formatting using black
1 parent 8880c5f commit 509805d

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

src/commercetools/testing/carts.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,8 @@ def _create_from_draft(
152152
direct_discounts=[],
153153
tax_mode=draft.tax_mode or models.TaxMode.PLATFORM,
154154
tax_rounding_mode=draft.tax_rounding_mode or models.RoundingMode.HALF_EVEN,
155-
tax_calculation_mode=draft.tax_calculation_mode or models.TaxCalculationMode.LINE_ITEM_LEVEL,
155+
tax_calculation_mode=draft.tax_calculation_mode
156+
or models.TaxCalculationMode.LINE_ITEM_LEVEL,
156157
item_shipping_addresses=[],
157158
line_items=line_items,
158159
custom_line_items=[],

tests/platform/test_custom_fields.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44

55
def test_serialize_field_container():
6-
76
draft = models.CustomFieldsDraft(
87
type=models.TypeResourceIdentifier(id="foobar"),
98
fields=models.FieldContainer(foobar=10),

tests/platform/test_service_products.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,6 @@ def test_product_update_add_price_current(old_client):
345345

346346
def test_predicate_var(old_client):
347347
with requests_mock.Mocker(real_http=True, case_sensitive=True) as m:
348-
349348
result = old_client.products.query(
350349
where="masterData(staged(masterVariant(prices(country='NL'))))",
351350
predicate_var={"foo": "bar"},

tests/platform/test_service_stores.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ def test_store_flow(ct_platform_client: PlatformClient, store_draft):
2424
@pytest.fixture
2525
def store_draft():
2626
return models.StoreDraft(
27-
key="test store",
28-
name=models.LocalizedString({"en": "test store"})
27+
key="test store", name=models.LocalizedString({"en": "test store"})
2928
)
3029

3130

0 commit comments

Comments
 (0)