Skip to content

Commit 5244da2

Browse files
committed
chore(test): disable failing tests on windows
There is an issue tracking this, and until it is resolved, may as well disable the tests. Signed-off-by: JP-Ellis <[email protected]>
1 parent 6970b41 commit 5244da2

File tree

4 files changed

+143
-0
lines changed

4 files changed

+143
-0
lines changed

tests/v3/compatibility_suite/test_v1_provider.py

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from __future__ import annotations
66

77
import logging
8+
import sys
89

910
import pytest
1011
from pytest_bdd import given, parsers, scenario
@@ -45,6 +46,10 @@
4546
################################################################################
4647

4748

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

5560

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

6372

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

7184

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

8198

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

91112

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

101126

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

111140

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

119152

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

127164

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

135176

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

143188

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

151200

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

159212

213+
@pytest.mark.skipif(
214+
sys.platform.startswith("win"),
215+
reason="See pact-foundation/pact-python#639",
216+
)
160217
@scenario(
161218
"definition/features/V1/http_provider.feature",
162219
"Verifies the response headers",
@@ -165,6 +222,10 @@ def test_verifies_the_response_headers() -> None:
165222
"""Verifies the response headers."""
166223

167224

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

175236

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

183248

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

191260

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

199272

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

207284

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

215296

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

223308

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

231320

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

239332

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

247344

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

255356

357+
@pytest.mark.skipif(
358+
sys.platform.startswith("win"),
359+
reason="See pact-foundation/pact-python#639",
360+
)
256361
@scenario(
257362
"definition/features/V1/http_provider.feature",
258363
"Response with multipart body (negative case)",

tests/v3/compatibility_suite/test_v2_provider.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
from __future__ import annotations
66

77
import logging
8+
import sys
89

10+
import pytest
911
from pytest_bdd import given, parsers, scenario
1012

1113
from tests.v3.compatibility_suite.util import (
@@ -28,6 +30,10 @@
2830
################################################################################
2931

3032

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

4046

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

5060

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

6074

75+
@pytest.mark.skipif(
76+
sys.platform.startswith("win"),
77+
reason="See pact-foundation/pact-python#639",
78+
)
6179
@scenario(
6280
"definition/features/V2/http_provider.feature",
6381
"Verifies the response body (negative case)",

tests/v3/compatibility_suite/test_v3_provider.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
from __future__ import annotations
66

77
import logging
8+
import sys
89

10+
import pytest
911
from pytest_bdd import given, parsers, scenario
1012

1113
from tests.v3.compatibility_suite.util import (
@@ -31,6 +33,10 @@
3133
################################################################################
3234

3335

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

4349

50+
@pytest.mark.skipif(
51+
sys.platform.startswith("win"),
52+
reason="See pact-foundation/pact-python#639",
53+
)
4454
@scenario(
4555
"definition/features/V3/http_provider.feature",
4656
"Verifying an interaction with a provider state with parameters",

0 commit comments

Comments
 (0)