Skip to content

Commit 2c652f0

Browse files
committed
chore(tests): skip windows tests
See mentioned issue for details. Signed-off-by: JP-Ellis <[email protected]>
1 parent 93a5432 commit 2c652f0

File tree

1 file changed

+73
-0
lines changed

1 file changed

+73
-0
lines changed

tests/v3/compatibility_suite/test_v3_message_producer.py

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import logging
77
import pickle
88
import re
9+
import sys
910
from pathlib import Path
1011
from typing import TYPE_CHECKING, Generator
1112

@@ -48,6 +49,10 @@
4849
logger = logging.getLogger(__name__)
4950

5051

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

5863

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

6675

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

7487

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

8299

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

90111

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

98123

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

106135

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

114147

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

122159

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

130171

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

138183

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

146195

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

154207

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

163220

221+
@pytest.mark.skipif(
222+
sys.platform.startswith("win"),
223+
reason="See pact-foundation/pact-python#639",
224+
)
164225
@scenario(
165226
"definition/features/V3/message_provider.feature",
166227
"Verifies the message metadata",
@@ -169,6 +230,10 @@ def test_verifies_the_message_metadata() -> None:
169230
"""Verifies the message metadata."""
170231

171232

233+
@pytest.mark.skipif(
234+
sys.platform.startswith("win"),
235+
reason="See pact-foundation/pact-python#639",
236+
)
172237
@scenario(
173238
"definition/features/V3/message_provider.feature",
174239
"Verifying a simple message",
@@ -177,6 +242,10 @@ def test_verifying_a_simple_message() -> None:
177242
"""Verifying a simple message."""
178243

179244

245+
@pytest.mark.skipif(
246+
sys.platform.startswith("win"),
247+
reason="See pact-foundation/pact-python#639",
248+
)
180249
@scenario(
181250
"definition/features/V3/message_provider.feature",
182251
"Verifying an interaction with a defined provider state",
@@ -185,6 +254,10 @@ def test_verifying_an_interaction_with_a_defined_provider_state() -> None:
185254
"""Verifying an interaction with a defined provider state."""
186255

187256

257+
@pytest.mark.skipif(
258+
sys.platform.startswith("win"),
259+
reason="See pact-foundation/pact-python#639",
260+
)
188261
@scenario(
189262
"definition/features/V3/message_provider.feature",
190263
"Verifying multiple Pact files",

0 commit comments

Comments
 (0)