Skip to content

Commit

Permalink
test: add skip for proxy test on non-MacOS platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaMoelans committed Nov 14, 2024
1 parent 20e611c commit 1d1f3d1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_integration_crashpad.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ def test_crashpad_capture(cmake, httpserver):
assert len(httpserver.log) == 2


@pytest.mark.skipif(
sys.platform != "darwin", reason="currently proxy tests are only supported on macOS"
)
@pytest.mark.parametrize("run_args", [(["http-proxy"]), (["socks5-proxy"])])
@pytest.mark.parametrize("proxy_status", [(["off"]), (["on"])])
def test_crashpad_crash_proxy(cmake, httpserver, run_args, proxy_status):
Expand Down
4 changes: 4 additions & 0 deletions tests/test_integration_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import json
import os
import shutil
import sys
import time
import uuid
import subprocess
Expand Down Expand Up @@ -609,6 +610,9 @@ def test_capture_minidump(cmake, httpserver):
assert_minidump(envelope)


@pytest.mark.skipif(
sys.platform != "darwin", reason="currently proxy tests are only supported on macOS"
)
@pytest.mark.parametrize("run_args", [(["http-proxy"]), (["socks5-proxy"])])
@pytest.mark.parametrize("proxy_status", [(["off"]), (["on"])])
def test_capture_proxy(cmake, httpserver, run_args, proxy_status):
Expand Down

0 comments on commit 1d1f3d1

Please sign in to comment.