Skip to content

Commit

Permalink
chatbot fix
Browse files Browse the repository at this point in the history
  • Loading branch information
antdanchenko committed Jun 3, 2019
1 parent 75e20a0 commit 3003a1c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/appium/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ def pytest_addoption(parser):
action='store',
default=600,
help='Running time in seconds')
parser.addoption('--chat_name',
action='store',
default='test_chat',
help='Public chat name')

# running tests using appium docker instance

Expand Down Expand Up @@ -251,7 +255,10 @@ def get_testrail_case_id(item):


def pytest_runtest_setup(item):
testrail_id = [mark.args[0] for mark in item.iter_markers(name='testrail_id')][0]
try:
testrail_id = [mark.args[0] for mark in item.iter_markers(name='testrail_id')][0]
except IndexError:
pass
run_testrail_ids = item.config.getoption("run_testrail_ids")
if run_testrail_ids:
if str(testrail_id) not in run_testrail_ids:
Expand Down

0 comments on commit 3003a1c

Please sign in to comment.