duncanmmacleod/requests-ecp

View on GitHub
requests_ecp/tests/test_ecp.py

Summary

Maintainability
A
0 mins
Test Coverage

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open

    assert ecp._get_xml_attribute(
        etree.XML(SP_ECP_PAOS_RESPONSE),
        "//ecp:RelayState",
    ).text.strip() == "relay_state_text"
Severity: Info
Found in requests_ecp/tests/test_ecp.py by bandit

Using etree to parse untrusted XML data is known to be vulnerable to XML attacks. Replace etree with the equivalent defusedxml package.
Open

from lxml import etree

Severity: Info
Found in requests_ecp/tests/test_ecp.py by bandit

There are no issues that match your filters.

Category
Status