Newer
Older
NewLang / mutmut_config.py
# SPDX-License-Identifier: LGPL-2.1-only
# Copyright 2022 Jookia <contact@jookia.org>

import os.path

def pre_mutation(context):
    dirname, filename = os.path.split(context.filename)
    testname = "test_" + os.path.splitext(filename)[0]
    context.config.test_command += ' -k ' + testname