Skip to content

Commit e2fe840

Browse files
author
Andrei Neagu
committed
pylint
1 parent 0e52fdd commit e2fe840

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

packages/pytest-simcore/src/pytest_simcore/helpers/httpx_calls_capture_parameters.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,19 @@ def regex_pattern(self) -> str:
6767
msg = "Current version cannot compute regex patterns in case of oneOf. Please go ahead and implement it yourself."
6868
raise NotImplementedError(msg)
6969
if self.anyOf:
70-
return "|".join([elm.regex_pattern for elm in self.anyOf])
70+
return "|".join(
71+
[
72+
elm.regex_pattern
73+
for elm in self.anyOf # pylint:disable=not-an-iterable
74+
]
75+
)
7176
if self.allOf:
72-
return "&".join([elm.regex_pattern for elm in self.allOf])
77+
return "&".join(
78+
[
79+
elm.regex_pattern
80+
for elm in self.allOf # pylint:disable=not-an-iterable
81+
]
82+
)
7383

7484
# now deal with non-recursive cases
7585
pattern: str | None = None

0 commit comments

Comments
 (0)