Skip to content
This repository was archived by the owner on Oct 12, 2023. It is now read-only.

Commit 077fe12

Browse files
committed
Test fixes
1 parent 37443c8 commit 077fe12

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

tests/test_longrunning_receive.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,11 @@ def test_long_running_receive():
7676
username=args.sas_policy,
7777
password=args.sas_key)
7878
else:
79-
raise ValueError("Must specify either '--conn-str' or '--address'")
79+
try:
80+
import pytest
81+
pytest.skip("Must specify either '--conn-str' or '--address'")
82+
except ImportError:
83+
raise ValueError("Must specify either '--conn-str' or '--address'")
8084

8185
try:
8286
pumps = []

tests/test_longrunning_send.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,11 @@ def test_long_running_send():
7676
username=args.sas_policy,
7777
password=args.sas_key)
7878
else:
79-
raise ValueError("Must specify either '--conn-str' or '--address'")
79+
try:
80+
import pytest
81+
pytest.skip("Must specify either '--conn-str' or '--address'")
82+
except ImportError:
83+
raise ValueError("Must specify either '--conn-str' or '--address'")
8084

8185
try:
8286
main(client, args)

0 commit comments

Comments
 (0)