Skip to content

Commit

Permalink
chore(tests): skip windows tests
Browse files Browse the repository at this point in the history
See mentioned issue for details.

Signed-off-by: JP-Ellis <[email protected]>
  • Loading branch information
JP-Ellis committed Jul 18, 2024
1 parent 93a5432 commit 2c652f0
Showing 1 changed file with 73 additions and 0 deletions.
73 changes: 73 additions & 0 deletions tests/v3/compatibility_suite/test_v3_message_producer.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import logging
import pickle
import re
import sys
from pathlib import Path
from typing import TYPE_CHECKING, Generator

Expand Down Expand Up @@ -48,6 +49,10 @@
logger = logging.getLogger(__name__)


@pytest.mark.skipif(
sys.platform.startswith("win"),
reason="See pact-foundation/pact-python#639",
)
@scenario(
"definition/features/V3/message_provider.feature",
"Incorrect message is generated by the provider",
Expand All @@ -56,6 +61,10 @@ def test_incorrect_message_is_generated_by_the_provider() -> None:
"""Incorrect message is generated by the provider."""


@pytest.mark.skipif(
sys.platform.startswith("win"),
reason="See pact-foundation/pact-python#639",
)
@scenario(
"definition/features/V3/message_provider.feature",
"Message with JSON body (negative case)",
Expand All @@ -64,6 +73,10 @@ def test_message_with_json_body_negative_case() -> None:
"""Message with JSON body (negative case)."""


@pytest.mark.skipif(
sys.platform.startswith("win"),
reason="See pact-foundation/pact-python#639",
)
@scenario(
"definition/features/V3/message_provider.feature",
"Message with JSON body (positive case)",
Expand All @@ -72,6 +85,10 @@ def test_message_with_json_body_positive_case() -> None:
"""Message with JSON body (positive case)."""


@pytest.mark.skipif(
sys.platform.startswith("win"),
reason="See pact-foundation/pact-python#639",
)
@scenario(
"definition/features/V3/message_provider.feature",
"Message with XML body (negative case)",
Expand All @@ -80,6 +97,10 @@ def test_message_with_xml_body_negative_case() -> None:
"""Message with XML body (negative case)."""


@pytest.mark.skipif(
sys.platform.startswith("win"),
reason="See pact-foundation/pact-python#639",
)
@scenario(
"definition/features/V3/message_provider.feature",
"Message with XML body (positive case)",
Expand All @@ -88,6 +109,10 @@ def test_message_with_xml_body_positive_case() -> None:
"""Message with XML body (positive case)."""


@pytest.mark.skipif(
sys.platform.startswith("win"),
reason="See pact-foundation/pact-python#639",
)
@scenario(
"definition/features/V3/message_provider.feature",
"Message with binary body (negative case)",
Expand All @@ -96,6 +121,10 @@ def test_message_with_binary_body_negative_case() -> None:
"""Message with binary body (negative case)."""


@pytest.mark.skipif(
sys.platform.startswith("win"),
reason="See pact-foundation/pact-python#639",
)
@scenario(
"definition/features/V3/message_provider.feature",
"Message with binary body (positive case)",
Expand All @@ -104,6 +133,10 @@ def test_message_with_binary_body_positive_case() -> None:
"""Message with binary body (positive case)."""


@pytest.mark.skipif(
sys.platform.startswith("win"),
reason="See pact-foundation/pact-python#639",
)
@scenario(
"definition/features/V3/message_provider.feature",
"Message with plain text body (negative case)",
Expand All @@ -112,6 +145,10 @@ def test_message_with_plain_text_body_negative_case() -> None:
"""Message with plain text body (negative case)."""


@pytest.mark.skipif(
sys.platform.startswith("win"),
reason="See pact-foundation/pact-python#639",
)
@scenario(
"definition/features/V3/message_provider.feature",
"Message with plain text body (positive case)",
Expand All @@ -120,6 +157,10 @@ def test_message_with_plain_text_body_positive_case() -> None:
"""Message with plain text body (positive case)."""


@pytest.mark.skipif(
sys.platform.startswith("win"),
reason="See pact-foundation/pact-python#639",
)
@scenario(
"definition/features/V3/message_provider.feature",
"Supports matching rules for the message body (negative case)",
Expand All @@ -128,6 +169,10 @@ def test_supports_matching_rules_for_the_message_body_negative_case() -> None:
"""Supports matching rules for the message body (negative case)."""


@pytest.mark.skipif(
sys.platform.startswith("win"),
reason="See pact-foundation/pact-python#639",
)
@scenario(
"definition/features/V3/message_provider.feature",
"Supports matching rules for the message body (positive case)",
Expand All @@ -136,6 +181,10 @@ def test_supports_matching_rules_for_the_message_body_positive_case() -> None:
"""Supports matching rules for the message body (positive case)."""


@pytest.mark.skipif(
sys.platform.startswith("win"),
reason="See pact-foundation/pact-python#639",
)
@scenario(
"definition/features/V3/message_provider.feature",
"Supports matching rules for the message metadata (negative case)",
Expand All @@ -144,6 +193,10 @@ def test_supports_matching_rules_for_the_message_metadata_negative_case() -> Non
"""Supports matching rules for the message metadata (negative case)."""


@pytest.mark.skipif(
sys.platform.startswith("win"),
reason="See pact-foundation/pact-python#639",
)
@scenario(
"definition/features/V3/message_provider.feature",
"Supports matching rules for the message metadata (positive case)",
Expand All @@ -152,6 +205,10 @@ def test_supports_matching_rules_for_the_message_metadata_positive_case() -> Non
"""Supports matching rules for the message metadata (positive case)."""


@pytest.mark.skipif(
sys.platform.startswith("win"),
reason="See pact-foundation/pact-python#639",
)
@pytest.mark.skip("Currently unable to implement")
@scenario(
"definition/features/V3/message_provider.feature",
Expand All @@ -161,6 +218,10 @@ def test_supports_messages_with_body_formatted_for_the_kafka_schema_registry() -
"""Supports messages with body formatted for the Kafka schema registry."""


@pytest.mark.skipif(
sys.platform.startswith("win"),
reason="See pact-foundation/pact-python#639",
)
@scenario(
"definition/features/V3/message_provider.feature",
"Verifies the message metadata",
Expand All @@ -169,6 +230,10 @@ def test_verifies_the_message_metadata() -> None:
"""Verifies the message metadata."""


@pytest.mark.skipif(
sys.platform.startswith("win"),
reason="See pact-foundation/pact-python#639",
)
@scenario(
"definition/features/V3/message_provider.feature",
"Verifying a simple message",
Expand All @@ -177,6 +242,10 @@ def test_verifying_a_simple_message() -> None:
"""Verifying a simple message."""


@pytest.mark.skipif(
sys.platform.startswith("win"),
reason="See pact-foundation/pact-python#639",
)
@scenario(
"definition/features/V3/message_provider.feature",
"Verifying an interaction with a defined provider state",
Expand All @@ -185,6 +254,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/V3/message_provider.feature",
"Verifying multiple Pact files",
Expand Down

0 comments on commit 2c652f0

Please sign in to comment.