补采新增设备并限制次日截止
This commit is contained in:
@@ -174,9 +174,14 @@ class AcceptanceCreationTest(unittest.TestCase):
|
||||
|
||||
@patch("acceptance_service.threading.Thread", _ThreadWithoutStart)
|
||||
@patch("acceptance_service.schedule_xapi_screenshots")
|
||||
@patch("acceptance_service.list_xhs_wen_xapi_devices")
|
||||
@patch("acceptance_service.get_wen_resources")
|
||||
def test_retry_failed_devices_dispatches_only_failed_accounts(self, resources, schedule):
|
||||
def test_retry_failed_devices_dispatches_only_failed_accounts(self, resources, devices, schedule):
|
||||
resources.return_value = {"cookie_count": 0, "device_count": 2}
|
||||
devices.return_value = [
|
||||
{"xhs_account_id": "failed-account"},
|
||||
{"xhs_account_id": "successful-account"},
|
||||
]
|
||||
schedule.return_value = {
|
||||
"execution_mode": "immediate",
|
||||
"batches": [{
|
||||
|
||||
Reference in New Issue
Block a user