Skip to content

Commit

Permalink
chore(test): disable failing tests on windows
Browse files Browse the repository at this point in the history
There is an issue tracking this, and until it is resolved, may as well
disable the tests.

Signed-off-by: JP-Ellis <josh@jpellis.me>
  • Loading branch information
JP-Ellis committed Apr 11, 2024
1 parent 6970b41 commit 5244da2
Show file tree
Hide file tree
Showing 4 changed files with 143 additions and 0 deletions.
105 changes: 105 additions & 0 deletions tests/v3/compatibility_suite/test_v1_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from __future__ import annotations

import logging
import sys

import pytest
from pytest_bdd import given, parsers, scenario
Expand Down Expand Up @@ -45,6 +46,10 @@
################################################################################


@pytest.mark.skipif(
sys.platform.startswith("win"),
reason="See pact-foundation/pact-python#639",
)
@scenario(
"definition/features/V1/http_provider.feature",
"Verifying a simple HTTP request",
Expand All @@ -53,6 +58,10 @@ def test_verifying_a_simple_http_request() -> None:
"""Verifying a simple HTTP request."""


@pytest.mark.skipif(
sys.platform.startswith("win"),
reason="See pact-foundation/pact-python#639",
)
@scenario(
"definition/features/V1/http_provider.feature",
"Verifying multiple Pact files",
Expand All @@ -61,6 +70,10 @@ def test_verifying_multiple_pact_files() -> None:
"""Verifying multiple Pact files."""


@pytest.mark.skipif(
sys.platform.startswith("win"),
reason="See pact-foundation/pact-python#639",
)
@scenario(
"definition/features/V1/http_provider.feature",
"Incorrect request is made to provider",
Expand All @@ -69,6 +82,10 @@ def test_incorrect_request_is_made_to_provider() -> None:
"""Incorrect request is made to provider."""


@pytest.mark.skipif(
sys.platform.startswith("win"),
reason="See pact-foundation/pact-python#639",
)
@pytest.mark.container()
@scenario(
"definition/features/V1/http_provider.feature",
Expand All @@ -79,6 +96,10 @@ def test_verifying_a_simple_http_request_via_a_pact_broker() -> None:
reset_broker_var.set(True) # noqa: FBT003


@pytest.mark.skipif(
sys.platform.startswith("win"),
reason="See pact-foundation/pact-python#639",
)
@pytest.mark.container()
@scenario(
"definition/features/V1/http_provider.feature",
Expand All @@ -89,6 +110,10 @@ def test_verifying_a_simple_http_request_via_a_pact_broker_with_publishing() ->
reset_broker_var.set(True) # noqa: FBT003


@pytest.mark.skipif(
sys.platform.startswith("win"),
reason="See pact-foundation/pact-python#639",
)
@pytest.mark.container()
@scenario(
"definition/features/V1/http_provider.feature",
Expand All @@ -99,6 +124,10 @@ def test_verifying_multiple_pact_files_via_a_pact_broker() -> None:
reset_broker_var.set(True) # noqa: FBT003


@pytest.mark.skipif(
sys.platform.startswith("win"),
reason="See pact-foundation/pact-python#639",
)
@pytest.mark.container()
@scenario(
"definition/features/V1/http_provider.feature",
Expand All @@ -109,6 +138,10 @@ def test_incorrect_request_is_made_to_provider_via_a_pact_broker() -> None:
reset_broker_var.set(True) # noqa: FBT003


@pytest.mark.skipif(
sys.platform.startswith("win"),
reason="See pact-foundation/pact-python#639",
)
@scenario(
"definition/features/V1/http_provider.feature",
"Verifying an interaction with a defined provider state",
Expand All @@ -117,6 +150,10 @@ def test_verifying_an_interaction_with_a_defined_provider_state() -> None:
"""Verifying an interaction with a defined provider state."""


@pytest.mark.skipif(
sys.platform.startswith("win"),
reason="See pact-foundation/pact-python#639",
)
@scenario(
"definition/features/V1/http_provider.feature",
"Verifying an interaction with no defined provider state",
Expand All @@ -125,6 +162,10 @@ def test_verifying_an_interaction_with_no_defined_provider_state() -> None:
"""Verifying an interaction with no defined provider state."""


@pytest.mark.skipif(
sys.platform.startswith("win"),
reason="See pact-foundation/pact-python#639",
)
@scenario(
"definition/features/V1/http_provider.feature",
"Verifying an interaction where the provider state callback fails",
Expand All @@ -133,6 +174,10 @@ def test_verifying_an_interaction_where_the_provider_state_callback_fails() -> N
"""Verifying an interaction where the provider state callback fails."""


@pytest.mark.skipif(
sys.platform.startswith("win"),
reason="See pact-foundation/pact-python#639",
)
@scenario(
"definition/features/V1/http_provider.feature",
"Verifying an interaction where a provider state callback is not configured",
Expand All @@ -141,6 +186,10 @@ def test_verifying_an_interaction_where_no_provider_state_callback_configured()
"""Verifying an interaction where a provider state callback is not configured."""


@pytest.mark.skipif(
sys.platform.startswith("win"),
reason="See pact-foundation/pact-python#639",
)
@scenario(
"definition/features/V1/http_provider.feature",
"Verifying a HTTP request with a request filter configured",
Expand All @@ -149,6 +198,10 @@ def test_verifying_a_http_request_with_a_request_filter_configured() -> None:
"""Verifying a HTTP request with a request filter configured."""


@pytest.mark.skipif(
sys.platform.startswith("win"),
reason="See pact-foundation/pact-python#639",
)
@scenario(
"definition/features/V1/http_provider.feature",
"Verifies the response status code",
Expand All @@ -157,6 +210,10 @@ def test_verifies_the_response_status_code() -> None:
"""Verifies the response status code."""


@pytest.mark.skipif(
sys.platform.startswith("win"),
reason="See pact-foundation/pact-python#639",
)
@scenario(
"definition/features/V1/http_provider.feature",
"Verifies the response headers",
Expand All @@ -165,6 +222,10 @@ def test_verifies_the_response_headers() -> None:
"""Verifies the response headers."""


@pytest.mark.skipif(
sys.platform.startswith("win"),
reason="See pact-foundation/pact-python#639",
)
@scenario(
"definition/features/V1/http_provider.feature",
"Response with plain text body (positive case)",
Expand All @@ -173,6 +234,10 @@ def test_response_with_plain_text_body_positive_case() -> None:
"""Response with plain text body (positive case)."""


@pytest.mark.skipif(
sys.platform.startswith("win"),
reason="See pact-foundation/pact-python#639",
)
@scenario(
"definition/features/V1/http_provider.feature",
"Response with plain text body (negative case)",
Expand All @@ -181,6 +246,10 @@ def test_response_with_plain_text_body_negative_case() -> None:
"""Response with plain text body (negative case)."""


@pytest.mark.skipif(
sys.platform.startswith("win"),
reason="See pact-foundation/pact-python#639",
)
@scenario(
"definition/features/V1/http_provider.feature",
"Response with JSON body (positive case)",
Expand All @@ -189,6 +258,10 @@ def test_response_with_json_body_positive_case() -> None:
"""Response with JSON body (positive case)."""


@pytest.mark.skipif(
sys.platform.startswith("win"),
reason="See pact-foundation/pact-python#639",
)
@scenario(
"definition/features/V1/http_provider.feature",
"Response with JSON body (negative case)",
Expand All @@ -197,6 +270,10 @@ def test_response_with_json_body_negative_case() -> None:
"""Response with JSON body (negative case)."""


@pytest.mark.skipif(
sys.platform.startswith("win"),
reason="See pact-foundation/pact-python#639",
)
@scenario(
"definition/features/V1/http_provider.feature",
"Response with XML body (positive case)",
Expand All @@ -205,6 +282,10 @@ def test_response_with_xml_body_positive_case() -> None:
"""Response with XML body (positive case)."""


@pytest.mark.skipif(
sys.platform.startswith("win"),
reason="See pact-foundation/pact-python#639",
)
@scenario(
"definition/features/V1/http_provider.feature",
"Response with XML body (negative case)",
Expand All @@ -213,6 +294,10 @@ def test_response_with_xml_body_negative_case() -> None:
"""Response with XML body (negative case)."""


@pytest.mark.skipif(
sys.platform.startswith("win"),
reason="See pact-foundation/pact-python#639",
)
@scenario(
"definition/features/V1/http_provider.feature",
"Response with binary body (positive case)",
Expand All @@ -221,6 +306,10 @@ def test_response_with_binary_body_positive_case() -> None:
"""Response with binary body (positive case)."""


@pytest.mark.skipif(
sys.platform.startswith("win"),
reason="See pact-foundation/pact-python#639",
)
@scenario(
"definition/features/V1/http_provider.feature",
"Response with binary body (negative case)",
Expand All @@ -229,6 +318,10 @@ def test_response_with_binary_body_negative_case() -> None:
"""Response with binary body (negative case)."""


@pytest.mark.skipif(
sys.platform.startswith("win"),
reason="See pact-foundation/pact-python#639",
)
@scenario(
"definition/features/V1/http_provider.feature",
"Response with form post body (positive case)",
Expand All @@ -237,6 +330,10 @@ def test_response_with_form_post_body_positive_case() -> None:
"""Response with form post body (positive case)."""


@pytest.mark.skipif(
sys.platform.startswith("win"),
reason="See pact-foundation/pact-python#639",
)
@scenario(
"definition/features/V1/http_provider.feature",
"Response with form post body (negative case)",
Expand All @@ -245,6 +342,10 @@ def test_response_with_form_post_body_negative_case() -> None:
"""Response with form post body (negative case)."""


@pytest.mark.skipif(
sys.platform.startswith("win"),
reason="See pact-foundation/pact-python#639",
)
@scenario(
"definition/features/V1/http_provider.feature",
"Response with multipart body (positive case)",
Expand All @@ -253,6 +354,10 @@ def test_response_with_multipart_body_positive_case() -> None:
"""Response with multipart body (positive case)."""


@pytest.mark.skipif(
sys.platform.startswith("win"),
reason="See pact-foundation/pact-python#639",
)
@scenario(
"definition/features/V1/http_provider.feature",
"Response with multipart body (negative case)",
Expand Down
18 changes: 18 additions & 0 deletions tests/v3/compatibility_suite/test_v2_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
from __future__ import annotations

import logging
import sys

import pytest
from pytest_bdd import given, parsers, scenario

from tests.v3.compatibility_suite.util import (
Expand All @@ -28,6 +30,10 @@
################################################################################


@pytest.mark.skipif(
sys.platform.startswith("win"),
reason="See pact-foundation/pact-python#639",
)
@scenario(
"definition/features/V2/http_provider.feature",
"Supports matching rules for the response headers (positive case)",
Expand All @@ -38,6 +44,10 @@ def test_supports_matching_rules_for_the_response_headers_positive_case() -> Non
"""


@pytest.mark.skipif(
sys.platform.startswith("win"),
reason="See pact-foundation/pact-python#639",
)
@scenario(
"definition/features/V2/http_provider.feature",
"Supports matching rules for the response headers (negative case)",
Expand All @@ -48,6 +58,10 @@ def test_supports_matching_rules_for_the_response_headers_negative_case() -> Non
"""


@pytest.mark.skipif(
sys.platform.startswith("win"),
reason="See pact-foundation/pact-python#639",
)
@scenario(
"definition/features/V2/http_provider.feature",
"Verifies the response body (positive case)",
Expand All @@ -58,6 +72,10 @@ def test_verifies_the_response_body_positive_case() -> None:
"""


@pytest.mark.skipif(
sys.platform.startswith("win"),
reason="See pact-foundation/pact-python#639",
)
@scenario(
"definition/features/V2/http_provider.feature",
"Verifies the response body (negative case)",
Expand Down
10 changes: 10 additions & 0 deletions tests/v3/compatibility_suite/test_v3_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
from __future__ import annotations

import logging
import sys

import pytest
from pytest_bdd import given, parsers, scenario

from tests.v3.compatibility_suite.util import (
Expand All @@ -31,6 +33,10 @@
################################################################################


@pytest.mark.skipif(
sys.platform.startswith("win"),
reason="See pact-foundation/pact-python#639",
)
@scenario(
"definition/features/V3/http_provider.feature",
"Verifying an interaction with multiple defined provider states",
Expand All @@ -41,6 +47,10 @@ def test_verifying_an_interaction_with_multiple_defined_provider_states() -> Non
"""


@pytest.mark.skipif(
sys.platform.startswith("win"),
reason="See pact-foundation/pact-python#639",
)
@scenario(
"definition/features/V3/http_provider.feature",
"Verifying an interaction with a provider state with parameters",
Expand Down
Loading

0 comments on commit 5244da2

Please sign in to comment.