Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
gen_example_code(test_method_name)
)
# Focused example
if test_method_name.startswith("ftest"):
context.fexample(test_method_name)(
gen_example_code(test_method_name)
)
# Skipped example
if test_method_name.startswith("xtest"):
context.xexample(test_method_name)(
gen_example_code(test_method_name)
)
return context_code
testslide.dsl.context("{}.{}".format(test_case.__module__, test_case.__name__))(
get_context_code(test_case)
)