Exemple #1
0
def pytest_configure(config):
    add_test_configuration(__file__)
    markexpr = getattr(config.option, "markexpr", "")
    marks = [markexpr] if markexpr else []
    for mark in markers_to_exlude_by_default:
        if mark not in markexpr:
            marks.append("not %s" % mark)
    new_markexpr = " and ".join(marks)
    setattr(config.option, "markexpr", new_markexpr)
    register_task(TConfig)
    register_config_cls(FooConfig)
Exemple #2
0
def pytest_configure(config):
    add_test_configuration(__file__)