Skip to content

pytest - zeep - DeprecationWarning : defusedxml.lxml is no longer supported and will be removed in a future release #1014

@andreabisello

Description

@andreabisello

Python 3.7.4
Pytest 5.2.1
Zeep 3.2

code to reproduce

from zeep import Client

def test_number_to_words():
    client = Client('http://www.dataaccess.com/webservicesserver/numberconversion.wso?WSDL')
    assert client.service.NumberToWords(100) == "one hundred "

on execution result

============================== warnings summary ===============================
C:\Users\andreabisello\AppData\Local\Programs\Python\Python37-32\lib\site-packages\zeep\loader.py:3
  C:\Users\andreabisello\AppData\Local\Programs\Python\Python37-32\lib\site-packages\zeep\loader.py:3: DeprecationWarning: defusedxml.lxml is no longer supported and will be removed in a future release.
    from defusedxml.lxml import fromstring

-- Docs: https://docs.pytest.org/en/latest/warnings.html

the warning looks related to pytest, but about zeep.

due i want to use pytest and zeep in production environment, should i move to another test framework or another soap library?

thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions