Skip to content

Commit 9cdd4db

Browse files
Fix formatting
1 parent b2a61ef commit 9cdd4db

File tree

1 file changed

+19
-7
lines changed

1 file changed

+19
-7
lines changed

tests/test_mock_server.py

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,14 @@
33
import requests
44

55
from commercetools import Client
6-
from commercetools.types import LocalizedString, ProductDraft, ChannelDraft, ChannelRoleEnum, ChannelResourceIdentifier, \
7-
StoreDraft
6+
from commercetools.types import (
7+
ChannelDraft,
8+
ChannelResourceIdentifier,
9+
ChannelRoleEnum,
10+
LocalizedString,
11+
ProductDraft,
12+
StoreDraft,
13+
)
814

915

1016
def test_http_server(commercetools_client, commercetools_http_server):
@@ -45,15 +51,21 @@ def test_http_server_expanding(commercetools_client, commercetools_http_server):
4551
)
4652

4753
client.channels.create(
48-
ChannelDraft(
49-
key="FOO", roles=[ChannelRoleEnum.PRODUCT_DISTRIBUTION]
50-
)
54+
ChannelDraft(key="FOO", roles=[ChannelRoleEnum.PRODUCT_DISTRIBUTION])
5155
)
5256

53-
store = client.stores.create(StoreDraft(key="FOO", distribution_channels=[ChannelResourceIdentifier(key="FOO")]))
57+
store = client.stores.create(
58+
StoreDraft(
59+
key="FOO", distribution_channels=[ChannelResourceIdentifier(key="FOO")]
60+
)
61+
)
5462

5563
url = commercetools_http_server.api_url + f"/unittest/stores/{store.id}"
56-
response = requests.get(url, params={"expand": "distributionChannels[*]"}, headers={"Authorization": "Bearer token"})
64+
response = requests.get(
65+
url,
66+
params={"expand": "distributionChannels[*]"},
67+
headers={"Authorization": "Bearer token"},
68+
)
5769

5870
assert response.status_code == 200, response.text
5971
data = response.json()

0 commit comments

Comments
 (0)