Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6eca846

Browse files
authored
tests/client: fix pytest mark skipif syntax (#2019)
For some reason tests passed with this but now are failing because pytest test does not recognize skipIf.
1 parent 3688340 commit 6eca846

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/client/client_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def test_custom_transport(elasticapm_client):
233233
assert isinstance(elasticapm_client._transport, DummyTransport)
234234

235235

236-
@pytest.mark.skipIf(simplejson_dumps is None)
236+
@pytest.mark.skipif(simplejson_dumps is None, reason="no test without simplejson")
237237
@pytest.mark.parametrize(
238238
"elasticapm_client", [{"transport_json_serializer": "elasticapm.utils.simplejson_encoder.dumps"}], indirect=True
239239
)

0 commit comments

Comments
 (0)