chore: temp remove the wrong test case reference
This commit is contained in:
parent
ceeef2f313
commit
046892dd98
|
@ -10,7 +10,7 @@ import configs
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
|
|
||||||
testrail_api = None
|
global testrail_api
|
||||||
test_run_id = None
|
test_run_id = None
|
||||||
|
|
||||||
PASS = 1
|
PASS = 1
|
||||||
|
@ -40,14 +40,15 @@ def init_testrail_api(request):
|
||||||
auth=(configs.testrail.USR, configs.testrail.PSW),
|
auth=(configs.testrail.USR, configs.testrail.PSW),
|
||||||
)
|
)
|
||||||
|
|
||||||
if response.status_code != 200:
|
if response.status_code in [400, 403, 429, 500]:
|
||||||
LOG.info('TestRail report skipped because of Testrail server error')
|
LOG.info(f'Could not login to test rail, got the following response {response}')
|
||||||
return
|
return
|
||||||
|
|
||||||
test_cases = get_test_cases_in_session(request)
|
test_cases = get_test_cases_in_session(request)
|
||||||
test_run = get_test_run(configs.testrail.RUN_NAME)
|
test_run = get_test_run(configs.testrail.RUN_NAME)
|
||||||
if not test_run:
|
if not test_run:
|
||||||
test_case_ids = list(set([tc_id.id for tc_id in test_cases]))
|
test_case_ids = list(set([tc_id.id for tc_id in test_cases]))
|
||||||
|
LOG.debug(f'test_case_ids = {test_case_ids}')
|
||||||
test_run = create_test_run(configs.testrail.RUN_NAME, test_case_ids)
|
test_run = create_test_run(configs.testrail.RUN_NAME, test_case_ids)
|
||||||
|
|
||||||
global test_run_id
|
global test_run_id
|
||||||
|
@ -180,6 +181,7 @@ def get_test_run(name: str) -> typing.Optional[dict]:
|
||||||
project_id=configs.testrail.PROJECT_ID,
|
project_id=configs.testrail.PROJECT_ID,
|
||||||
is_completed=False
|
is_completed=False
|
||||||
)
|
)
|
||||||
|
|
||||||
for test_run in test_runs['runs']:
|
for test_run in test_runs['runs']:
|
||||||
if test_run['name'] == name:
|
if test_run['name'] == name:
|
||||||
return test_run
|
return test_run
|
||||||
|
|
|
@ -123,7 +123,7 @@ def test_member_role_cannot_add_edit_and_delete_channels(main_screen: MainWindow
|
||||||
|
|
||||||
@allure.testcase('https://ethstatus.testrail.net/index.php?/cases/edit/737079',
|
@allure.testcase('https://ethstatus.testrail.net/index.php?/cases/edit/737079',
|
||||||
'Member not holding permission cannot see channel (view-only permission)')
|
'Member not holding permission cannot see channel (view-only permission)')
|
||||||
@pytest.mark.case(737079)
|
# @pytest.mark.case(737079) # FIXME need to migrate all references to new test rail project first
|
||||||
@pytest.mark.parametrize('user_data_one, user_data_two, asset, amount, channel_description', [
|
@pytest.mark.parametrize('user_data_one, user_data_two, asset, amount, channel_description', [
|
||||||
(configs.testpath.TEST_USER_DATA / 'squisher', configs.testpath.TEST_USER_DATA / 'athletic', 'ETH', '10',
|
(configs.testpath.TEST_USER_DATA / 'squisher', configs.testpath.TEST_USER_DATA / 'athletic', 'ETH', '10',
|
||||||
'description')
|
'description')
|
||||||
|
|
Loading…
Reference in New Issue