Skip to content

Commit 6373e96

Browse files
[fix] pep
1 parent f5f7f3b commit 6373e96

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

.zuul.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
check:
3636
jobs:
3737
- otc-tox-pep8
38-
- otc-tox-py310
38+
- otc-tox-py311
3939
- tox-functional-eu-de
4040
- tox-functional-eu-nl:
4141
voting: false
@@ -45,7 +45,7 @@
4545
- otce-upload-image
4646
gate:
4747
jobs:
48-
- otc-tox-py310
48+
- otc-tox-py311
4949
- otc-tox-pep8
5050
- tox-functional-eu-de
5151
- otce-upload-image

otcextensions/sdk/smn/v2/_proxy.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ def _is_collection_name(part):
2424

2525

2626
def _is_dynamic_path_part(part):
27-
return part.startswith("urn:") or len(part) >= 16 and all(
28-
char in "0123456789abcdefABCDEF-" for char in part
27+
return (
28+
part.startswith("urn:")
29+
or len(part) >= 16
30+
and all(char in "0123456789abcdefABCDEF-" for char in part)
2931
)
3032

3133

otcextensions/tests/unit/sdk/smn/v2/test_proxy.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,7 @@ def test_extract_name(self):
182182

183183
def test_extract_name_for_documented_endpoints(self):
184184
topic_urn = (
185-
"urn:smn:regionId:8bad8a40e0f7462f8c1676e3f93a8183:"
186-
"test_create_topic_v2"
185+
"urn:smn:regionId:8bad8a40e0f7462f8c1676e3f93a8183:" "test_create_topic_v2"
187186
)
188187
subscription_urn = f"{topic_urn}:subscription_id"
189188
endpoints = [

0 commit comments

Comments
 (0)