From ef25c31f183e0b221d6e2573b1908781d232c9cc Mon Sep 17 00:00:00 2001 From: Ayaz Salikhov Date: Sat, 22 Jan 2022 12:42:36 +0200 Subject: [PATCH] Fix --- conftest.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/conftest.py b/conftest.py index 3efb5a29..32518a95 100644 --- a/conftest.py +++ b/conftest.py @@ -109,11 +109,11 @@ class TrackedContainer: @staticmethod def get_warnings(logs: str) -> list[str]: - return [l for l in logs.split("\n") if l.startswith("WARNING")] + return [line for line in logs.split("\n") if line.startswith("WARNING")] @staticmethod - def get_errrors(logs: str) -> list[str]: - return [l for l in logs.split("\n") if l.startswith("ERROR")] + def get_errors(logs: str) -> list[str]: + return [line for line in logs.split("\n") if line.startswith("ERROR")] def remove(self): """Kills and removes the tracked docker container."""