Skip to content

Commit e88be48

Browse files
authored
Skip support-related tests (#626)
1 parent 37482a2 commit e88be48

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

tests/integration/support/test_support.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def test_tickets_list():
3737

3838
@pytest.fixture
3939
def tickets_id():
40-
ticket_ids = (
40+
res = (
4141
exec_test_command(
4242
BASE_CMD
4343
+ [
@@ -52,13 +52,18 @@ def tickets_id():
5252
)
5353
.stdout.decode()
5454
.rstrip()
55-
.split(",")
5655
)
56+
ticket_ids = res.split(",")
57+
if not ticket_ids or ticket_ids == [""]:
58+
pytest.skip("No support tickets available to test.")
5759
first_id = ticket_ids[0]
5860
yield first_id
5961

6062

6163
def test_tickets_view(tickets_id):
64+
if not tickets_id:
65+
pytest.skip("No support tickets available to view.")
66+
6267
ticket_id = tickets_id
6368
res = (
6469
exec_test_command(
@@ -91,6 +96,9 @@ def test_reply_support_ticket(tickets_id):
9196

9297

9398
def test_view_replies_support_ticket(tickets_id):
99+
if not tickets_id:
100+
pytest.skip("No support tickets available to view replies.")
101+
94102
ticket_id = tickets_id
95103
res = (
96104
exec_test_command(

0 commit comments

Comments
 (0)