Package tlib :: Package base :: Module PytestTester |
[hide private]
[frames] | no frames]

# Source Code for Module tlib.base.PytestTester

     1  import pytest
     2
     3  # noinspection PyMethodParameters
     4  # noinspection PyUnresolvedReferences
     5 -class PytestTester(object):
     6
     7      @pytest.fixture(scope='function', autouse=True)
     8 -    def log(self, request, test_logger):
     9          test_logger.info("======================== START %s ========================" % request.keywords.node.name)
    10
    11          def log_end():
    12              test_logger.info("======================== END %s ========================"  % request.keywords.node.name)
    13
    14          request.addfinalizer(log_end)
    15