Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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