小编ms_*_*tud的帖子

使用 PyTest 夹具而不通过它们

我正在使用 PyTest 框架来编写和运行我的测试。
我已经实现了一个具体的记录器:

class Logger(object):

    class LogFormats:
        ...

    def __init__(self, testname ,setup ,silent=True):
        """
        creating concrete logger for pytest.
        the logger will create a file for the test in specific test directory in quali FS and will
        write to this file all test log output (colored).
        :param: testname: test name - recieved from pytest fixtures (command line parameters)
        :param: setup: test setup - recieved from pytest fixtures (command line parameters)
        :param: silent: log test in silent mode (info only) …
Run Code Online (Sandbox Code Playgroud)

python pytest

6
推荐指数
1
解决办法
3854
查看次数

标签 统计

pytest ×1

python ×1