How to use the parameterized.parameterized.to_safe_name function in parameterized

To help you get started, we’ve selected a few parameterized examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github manu-chroma / username-availability-checker / tests / test_get_avatar.py View on Github external
def custom_name_func(testcase_func, param_num, param):
    return '%s_%s' % (
        testcase_func.__name__,
        parameterized.to_safe_name('_'.join(str(x) for x in param.args)),
    )
github manu-chroma / username-availability-checker / tests / test_username_api.py View on Github external
def custom_name_func(testcase_func, param_num, param):
    return '%s_%s' % (
        testcase_func.__name__,
        parameterized.to_safe_name('_'.join(str(x) for x in param.args)),
    )