Skip to content

Commit

Permalink
Skip support-related tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vshanthe committed Jul 11, 2024
1 parent b4c33e9 commit 9c7c25f
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions tests/integration/support/test_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def test_tickets_list():

@pytest.fixture
def tickets_id():
ticket_ids = (
res = (
exec_test_command(
BASE_CMD
+ [
Expand All @@ -52,13 +52,18 @@ def tickets_id():
)
.stdout.decode()
.rstrip()
.split(",")
)
ticket_ids = res.split(",")
if not ticket_ids or ticket_ids == [""]:
pytest.skip("No support tickets available to test.")
first_id = ticket_ids[0]
yield first_id


def test_tickets_view(tickets_id):
if not tickets_id:
pytest.skip("No support tickets available to view.")

ticket_id = tickets_id
res = (
exec_test_command(
Expand Down Expand Up @@ -91,6 +96,9 @@ def test_reply_support_ticket(tickets_id):


def test_view_replies_support_ticket(tickets_id):
if not tickets_id:
pytest.skip("No support tickets available to view replies.")

ticket_id = tickets_id
res = (
exec_test_command(
Expand Down

0 comments on commit 9c7c25f

Please sign in to comment.