Skip to content

Commit 2f1cf2a

Browse files
authored
Expect warnings/errors when no_warnings/no_errors is False (#2160)
1 parent eaf007b commit 2f1cf2a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/conftest.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,8 @@ def run_and_wait(
116116
logs = running_container.logs().decode("utf-8")
117117
assert isinstance(logs, str)
118118
LOGGER.debug(logs)
119-
if no_warnings:
120-
assert not self.get_warnings(logs)
121-
if no_errors:
122-
assert not self.get_errors(logs)
119+
assert no_warnings == (not self.get_warnings(logs))
120+
assert no_errors == (not self.get_errors(logs))
123121
assert no_failure == (rv["StatusCode"] == 0)
124122
return logs
125123

0 commit comments

Comments
 (0)