def suite_definition(configs_path: str) -> gen_typing.TestSuiteOutput: presets = loader.load_presets(configs_path, config_name) spec_phase0.apply_constants_preset(presets) spec_phase1.apply_constants_preset(presets) return ("sanity_%s_%s" % (handler_name, config_name), handler_name, gen_suite.render_suite( title="sanity testing", summary="Sanity test suite, %s type, generated from pytests" % handler_name, forks_timeline="testing", forks=["phase0"], config=config_name, runner="sanity", handler=handler_name, test_cases=get_cases()))
def suite_definition(configs_path: str) -> gen_typing.TestSuiteOutput: presets = loader.load_presets(configs_path, config_name) spec_phase0.apply_constants_preset(presets) spec_phase1.apply_constants_preset(presets) return ("%s_%s" % (operation_name, config_name), operation_name, gen_suite.render_suite( title="%s operation" % operation_name, summary="Test suite for %s type operation processing" % operation_name, forks_timeline="testing", forks=["phase0"], config=config_name, runner="operations", handler=operation_name, test_cases=get_cases()))
def config(request): config_name = request.config.getoption("--config") from preset_loader import loader presets = loader.load_presets('../../../configs/', config_name) spec_phase0.apply_constants_preset(presets) spec_phase1.apply_constants_preset(presets)
def prepare_fn(configs_path: str) -> str: presets = loader.load_presets(configs_path, config_name) spec_phase0.apply_constants_preset(presets) spec_phase1.apply_constants_preset(presets) return config_name