Skip to content

Commit aabba69

Browse files
committed
Fix test
1 parent 54fa92c commit aabba69

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/unit/test_platform.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"""platform tests"""
2323

2424
import json
25-
from requests import RequestException
25+
import requests.exceptions
2626
from datetime import datetime
2727

2828
import pytest
@@ -82,10 +82,11 @@ def test_wrong_url() -> None:
8282
tutil.TEST_SQ.local_url = "http://localhost:3337"
8383

8484
tutil.TEST_SQ._sys_info = None
85-
with pytest.raises(RequestException):
85+
with pytest.raises(requests.exceptions.ConnectionError):
8686
tutil.TEST_SQ.sys_info()
8787

88-
tutil.TEST_SQ.global_permissions()
88+
with pytest.raises(requests.exceptions.ConnectionError):
89+
tutil.TEST_SQ.global_permissions()
8990

9091

9192
def test_set_webhooks() -> None:

0 commit comments

Comments
 (0)