File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
tests/integration/support Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ def test_tickets_list():
3737
3838@pytest .fixture
3939def 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
6163def 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
9398def 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 (
You can’t perform that action at this time.
0 commit comments