Skip to content

Commit

Permalink
Expect warnings/errors when no_warnings/no_errors is False (jupyter#2160
Browse files Browse the repository at this point in the history
)
  • Loading branch information
mathbunnyru authored Oct 20, 2024
1 parent eaf007b commit 2f1cf2a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,8 @@ def run_and_wait(
logs = running_container.logs().decode("utf-8")
assert isinstance(logs, str)
LOGGER.debug(logs)
if no_warnings:
assert not self.get_warnings(logs)
if no_errors:
assert not self.get_errors(logs)
assert no_warnings == (not self.get_warnings(logs))
assert no_errors == (not self.get_errors(logs))
assert no_failure == (rv["StatusCode"] == 0)
return logs

Expand Down

0 comments on commit 2f1cf2a

Please sign in to comment.