Skip to content

Commit f530a65

Browse files
Skip some tests on macOS because the user is prompted to install certificates
1 parent ce87078 commit f530a65

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

tests/test_info.py

+6
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,14 @@
1515

1616
import re
1717
import requests
18+
import pytest
19+
from sys import platform
1820

1921

22+
@pytest.mark.skipif(
23+
platform == "darwin",
24+
reason="on macOS the user is prompted to install certificates",
25+
)
2026
def test_version(base_url, agent):
2127

2228
resp = requests.get(f"{base_url}/info")

tests/test_v2.py

+6
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,14 @@
1414
# along with this program. If not, see <https://www.gnu.org/licenses/>.
1515

1616
import requests
17+
import pytest
18+
from sys import platform
1719

1820

21+
@pytest.mark.skipif(
22+
platform == "darwin",
23+
reason="on macOS the user is prompted to install certificates",
24+
)
1925
def test_get_tools(base_url, agent):
2026

2127
resp = requests.get(f"{base_url}/v2/pkgs/tools/installed")

tests/test_ws.py

+9
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,25 @@
1717
import json
1818
import base64
1919
import pytest
20+
from sys import platform
2021

2122
from common import running_on_ci
2223
message = []
2324

2425

26+
@pytest.mark.skipif(
27+
platform == "darwin",
28+
reason="on macOS the user is prompted to install certificates",
29+
)
2530
def test_ws_connection(socketio):
2631
print('my sid is', socketio.sid)
2732
assert socketio.sid is not None
2833

2934

35+
@pytest.mark.skipif(
36+
platform == "darwin",
37+
reason="on macOS the user is prompted to install certificates",
38+
)
3039
def test_list(socketio, message):
3140
socketio.emit('command', 'list')
3241
time.sleep(.2)

0 commit comments

Comments
 (0)