mirror of
https://github.com/status-im/status-mobile.git
synced 2025-01-13 18:25:45 +00:00
fix pytest internal error if no response from saucelabs
Signed-off-by: Anton Danchenko <ant.danchenko@gmail.com>
This commit is contained in:
parent
bb4264ac70
commit
c91e51459f
@ -2,7 +2,7 @@ import requests
|
|||||||
import pytest
|
import pytest
|
||||||
import re
|
import re
|
||||||
from _pytest.runner import runtestprotocol
|
from _pytest.runner import runtestprotocol
|
||||||
|
from http.client import RemoteDisconnected
|
||||||
from support.device_stats_db import DeviceStatsDB
|
from support.device_stats_db import DeviceStatsDB
|
||||||
from support.test_rerun import should_rerun_test
|
from support.test_rerun import should_rerun_test
|
||||||
from tests import test_suite_data, appium_container
|
from tests import test_suite_data, appium_container
|
||||||
@ -236,7 +236,10 @@ def pytest_runtest_makereport(item, call):
|
|||||||
|
|
||||||
def update_sauce_jobs(test_name, job_ids, passed):
|
def update_sauce_jobs(test_name, job_ids, passed):
|
||||||
for job_id in job_ids.keys():
|
for job_id in job_ids.keys():
|
||||||
sauce.jobs.update_job(job_id, name=test_name, passed=passed)
|
try:
|
||||||
|
sauce.jobs.update_job(job_id, name=test_name, passed=passed)
|
||||||
|
except RemoteDisconnected:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
def get_testrail_case_id(obj):
|
def get_testrail_case_id(obj):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user