mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-10 03:23:00 +00:00
Update conftest.py
This commit is contained in:
@@ -109,11 +109,11 @@ class TrackedContainer:
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_errors(logs: str) -> list[str]:
|
def get_errors(logs: str) -> list[str]:
|
||||||
return _lines_starting_with(logs, "ERROR")
|
return TrackedContainer._lines_starting_with(logs, "ERROR")
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_warnings(logs: str) -> list[str]:
|
def get_warnings(logs: str) -> list[str]:
|
||||||
return _lines_starting_with(logs, "WARNING")
|
return TrackedContainer._lines_starting_with(logs, "WARNING")
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _lines_starting_with(logs: str, pattern: str) -> list[str]:
|
def _lines_starting_with(logs: str, pattern: str) -> list[str]:
|
||||||
|
Reference in New Issue
Block a user