Skip to content

Commit 09420c6

Browse files
fix non-iterable
1 parent 77c5762 commit 09420c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ def regex_pattern(self) -> str:
6666
if self.oneOf:
6767
msg = "Current version cannot compute regex patterns in case of oneOf. Please go ahead and implement it yourself."
6868
raise NotImplementedError(msg)
69-
if self.anyOf:
69+
if self.anyOf is not None:
7070
return "|".join([elm.regex_pattern for elm in self.anyOf])
71-
if self.allOf:
71+
if self.allOf is not None:
7272
return "&".join([elm.regex_pattern for elm in self.allOf])
7373

7474
# now deal with non-recursive cases

0 commit comments

Comments
 (0)