from pywps import Service
from pywps.tests import assert_response_success

from .common import get_output, client_for, CFG_FILE
from emu.processes.wps_multiple_outputs import MultipleOutputs


@pytest.fixture
def resp():
    client = client_for(Service(processes=[MultipleOutputs()], cfgfiles=CFG_FILE))
    datainputs = 'count=5'
    response = client.get(
        service="WPS", request="Execute", version="1.0.0", identifier="multiple_outputs",
        datainputs=datainputs)