From 74e939ea5de5a760b9c2d110b56e965414acae39 Mon Sep 17 00:00:00 2001 From: zoykhan <32883901+zoykhan@users.noreply.github.com> Date: Wed, 21 Oct 2020 06:56:08 -0700 Subject: [PATCH] Printing step title as banner --- cafy_pytest/cafy.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cafy_pytest/cafy.py b/cafy_pytest/cafy.py index cd40408..84fd5d7 100644 --- a/cafy_pytest/cafy.py +++ b/cafy_pytest/cafy.py @@ -5,6 +5,9 @@ from allure_commons._allure import StepContext as AllureStepContext import pytest from utils.cafyexception import CafyException +from logger.cafylog import CafyLog +log = CafyLog("cafy_pytest") + class Cafy: class Globals: @@ -45,6 +48,7 @@ def __init__(self, title, params, logger=None, blocking=True): super().__init__(title, params) self.blocking = blocking self.logger = logger + log.banner(title) def __enter__(self): super().__enter__()