Skip to content

Commit

Permalink
Skip bravado connection exception integration tests on Windows, they …
Browse files Browse the repository at this point in the history
…don't work properly
  • Loading branch information
sjaensch committed Oct 5, 2020
1 parent dd83d5e commit 20a0ce6
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions tests/integration/bravado_integration_test.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import sys

import aiohttp.client_exceptions
import pytest
from bravado.testing.integration_test import IntegrationTestsBaseClass
Expand Down Expand Up @@ -36,3 +38,27 @@ def test_request_timeout_errors_are_thrown_as_BravadoTimeoutError(
self, swagger_http_server
): # pragma: no cover
pass

@pytest.mark.skipif(
sys.platform == "win32",
reason="Test does not throw correct exception type on Windows",
)
def test_connection_errors_are_thrown_as_BravadoConnectionError(
self, not_answering_http_server
):
return super().test_connection_errors_are_thrown_as_BravadoConnectionError(
not_answering_http_server
)

@pytest.mark.skipif(
sys.platform == "win32",
reason="Test does not throw correct exception type on Windows",
)
def test_swagger_client_connection_errors_are_thrown_as_BravadoConnectionError(
self, not_answering_http_server, swagger_client, result_getter,
):
return super().test_swagger_client_connection_errors_are_thrown_as_BravadoConnectionError(
not_answering_http_server=not_answering_http_server,
swagger_client=swagger_client,
result_getter=result_getter,
)

0 comments on commit 20a0ce6

Please sign in to comment.