Refresh 01-remove-failing-tests.patch.

This commit is contained in:
Mathias Behrle 2017-09-04 19:01:07 +02:00
parent 32d3308313
commit 9e676427d4
1 changed files with 21 additions and 4 deletions

View File

@ -7,15 +7,16 @@ Forwarded: not needed
--- a/tests/test_wsse_signature.py
+++ /dev/null
@@ -1,112 +0,0 @@
@@ -1,113 +0,0 @@
-import os
-import sys
-
-import pytest
-from lxml import etree
-
-from tests.utils import load_xml
-from zeep.exceptions import SignatureVerificationFailed
-from zeep import wsse
-from zeep.exceptions import SignatureVerificationFailed
-from zeep.wsse import signature
-
-DS_NS = 'http://www.w3.org/2000/09/xmldsig#'
@ -122,14 +123,14 @@ Forwarded: not needed
- plugin.verify(envelope)
--- a/tests/test_asyncio_transport.py
+++ /dev/null
@@ -1,60 +0,0 @@
@@ -1,76 +0,0 @@
-import pytest
-from pretend import stub
-from lxml import etree
-import aiohttp
-from aioresponses import aioresponses
-
-from zeep import cache, asyncio
-from zeep import cache, asyncio, exceptions
-
-
-@pytest.mark.requests
@ -183,3 +184,19 @@ Forwarded: not needed
- transport = asyncio.AsyncTransport(loop=event_loop, session=session)
- del transport
- assert not session.closed
-
-
-@pytest.mark.requests
-def test_http_error(event_loop):
- transport = asyncio.AsyncTransport(loop=event_loop)
-
- with aioresponses() as m:
- m.get(
- 'http://tests.python-zeep.org/test.xml',
- body='x',
- status=500,
- )
- with pytest.raises(exceptions.TransportError) as exc:
- transport.load('http://tests.python-zeep.org/test.xml')
- assert exc.value.status_code == 500
- assert exc.value.message is None