Пример #1
0
def factory(request, factories):
    name, kwargs = request.param
    if not factories.installed(name):
        pytest.skip(f'Not installed: {name}')
    if not factories.enabled(name):
        pytest.skip(f'Not enabled: {name}')
    factory = factories[name]
    return CalculatorInputs(factory, kwargs)
Пример #2
0
def factory(request, factories):
    name, kwargs = request.param
    factory = factories[name]
    return CalculatorInputs(factory, kwargs)