Evaluating bids

Ejecutar Zeep en unit test de Django

Published on the January 05, 2021 in IT & Programming

About this project

Open

Actualmente se ejecuta un test usando zeep en django para testear un servicio SOAP, la idea es que el wsdl que utiliza zeep para saber a que servicio conectarse lo obtenga sin rodar el servidor y aseygurarse de que funciona desde base de pruebas no la defualt.
Def test_obtenerListaAcciones(self):
    # get actions
    # this server need to be up to work, but need to be execute test without work this.
    Wsdl = 'http://127.0.0.1:8000/soap/getactions/'
    client = zeep.Client(wsdl=wsdl)
    headerArr = {}
    settings = Settings(strict=False, xml_huge_tree=True,
                        extra_http_headers=headerArr, raw_response=True)
    client = Client(wsdl,
                    settings=settings)
    action = self.test_create_actions()
    requestData = {
    }
    res = client.service.g
etactions(**requestData)

Category IT & Programming
Subcategory Web development
What is the scope of the project? Small change or bug
Is this a project or a position? Project
I currently have I have specifications
Required availability As needed
API Integrations Other (Other APIs)
Roles needed Developer

Delivery term: January 06, 2021

Skills needed

Other projects posted by P. T.