예제 #1
0
def replace_decorator(node, capture, filename):
    """
    Replaces usage of ``@requires_salt_modules`` with ``@pytest.mark.requires_salt_modules``
    """
    return utils.rewrite_decorator(node, DECORATOR, MARKER)
예제 #2
0
def replace_decorator(node, capture, filename):
    """
    Replaces usage of ``@expensiveTest`` with ``@pytest.mark.expensive_test``
    """
    return utils.rewrite_decorator(node, DECORATOR, MARKER)
def replace_decorator(node, capture, filename):
    """
    Replaces usage of ``@skip_if_not_root`` with ``@pytest.mark.skip_if_not_root``
    """
    return utils.rewrite_decorator(node, DECORATOR, MARKER)