850 lines
49 KiB
Plaintext
850 lines
49 KiB
Plaintext
.EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEFFFFF......FFFF [100%]
|
|
=================================== ERRORS ====================================
|
|
___________ ERROR at setup of test_deduplicate_episode_and_restart ____________
|
|
|
|
tmp_path = WindowsPath('C:/Users/isard/AppData/Local/Temp/frozen-customer-notify-xkzhai2q/pytest-tmp/test_deduplicate_episode_and_r0')
|
|
|
|
@pytest.fixture
|
|
def setup(tmp_path):
|
|
settings = {'review_assistant_accounts': {ACCOUNT: {'enabled': True, 'recipient_conv_id': RECIPIENT}}}
|
|
service = ReviewAssistantCoordinator(tmp_path, lambda: settings, ACCOUNT)
|
|
state = dict(account=ACCOUNT, conv_id=CONV, display_name='测试客户', awaiting_review=True,
|
|
stage='awaiting_review', send_state='', review_reason='新风控', reply_text='未发送的草稿')
|
|
incoming = msg()
|
|
state['assistant_review_id'] = service.ensure_review(state, context(incoming))
|
|
> assert state['assistant_review_id']
|
|
E AssertionError: assert ''
|
|
|
|
C:\wechat_rpa\tests\test_review_assistant.py:39: AssertionError
|
|
_ ERROR at setup of test_human_completion_is_idempotent_and_new_risk_is_new_episode _
|
|
|
|
tmp_path = WindowsPath('C:/Users/isard/AppData/Local/Temp/frozen-customer-notify-xkzhai2q/pytest-tmp/test_human_completion_is_idemp0')
|
|
|
|
@pytest.fixture
|
|
def setup(tmp_path):
|
|
settings = {'review_assistant_accounts': {ACCOUNT: {'enabled': True, 'recipient_conv_id': RECIPIENT}}}
|
|
service = ReviewAssistantCoordinator(tmp_path, lambda: settings, ACCOUNT)
|
|
state = dict(account=ACCOUNT, conv_id=CONV, display_name='测试客户', awaiting_review=True,
|
|
stage='awaiting_review', send_state='', review_reason='新风控', reply_text='未发送的草稿')
|
|
incoming = msg()
|
|
state['assistant_review_id'] = service.ensure_review(state, context(incoming))
|
|
> assert state['assistant_review_id']
|
|
E AssertionError: assert ''
|
|
|
|
C:\wechat_rpa\tests\test_review_assistant.py:39: AssertionError
|
|
_ ERROR at setup of test_untrusted_or_historical_outbound_does_not_complete[changes0] _
|
|
|
|
tmp_path = WindowsPath('C:/Users/isard/AppData/Local/Temp/frozen-customer-notify-xkzhai2q/pytest-tmp/test_untrusted_or_historical_o0')
|
|
|
|
@pytest.fixture
|
|
def setup(tmp_path):
|
|
settings = {'review_assistant_accounts': {ACCOUNT: {'enabled': True, 'recipient_conv_id': RECIPIENT}}}
|
|
service = ReviewAssistantCoordinator(tmp_path, lambda: settings, ACCOUNT)
|
|
state = dict(account=ACCOUNT, conv_id=CONV, display_name='测试客户', awaiting_review=True,
|
|
stage='awaiting_review', send_state='', review_reason='新风控', reply_text='未发送的草稿')
|
|
incoming = msg()
|
|
state['assistant_review_id'] = service.ensure_review(state, context(incoming))
|
|
> assert state['assistant_review_id']
|
|
E AssertionError: assert ''
|
|
|
|
C:\wechat_rpa\tests\test_review_assistant.py:39: AssertionError
|
|
_ ERROR at setup of test_untrusted_or_historical_outbound_does_not_complete[changes1] _
|
|
|
|
tmp_path = WindowsPath('C:/Users/isard/AppData/Local/Temp/frozen-customer-notify-xkzhai2q/pytest-tmp/test_untrusted_or_historical_o1')
|
|
|
|
@pytest.fixture
|
|
def setup(tmp_path):
|
|
settings = {'review_assistant_accounts': {ACCOUNT: {'enabled': True, 'recipient_conv_id': RECIPIENT}}}
|
|
service = ReviewAssistantCoordinator(tmp_path, lambda: settings, ACCOUNT)
|
|
state = dict(account=ACCOUNT, conv_id=CONV, display_name='测试客户', awaiting_review=True,
|
|
stage='awaiting_review', send_state='', review_reason='新风控', reply_text='未发送的草稿')
|
|
incoming = msg()
|
|
state['assistant_review_id'] = service.ensure_review(state, context(incoming))
|
|
> assert state['assistant_review_id']
|
|
E AssertionError: assert ''
|
|
|
|
C:\wechat_rpa\tests\test_review_assistant.py:39: AssertionError
|
|
_ ERROR at setup of test_untrusted_or_historical_outbound_does_not_complete[changes2] _
|
|
|
|
tmp_path = WindowsPath('C:/Users/isard/AppData/Local/Temp/frozen-customer-notify-xkzhai2q/pytest-tmp/test_untrusted_or_historical_o2')
|
|
|
|
@pytest.fixture
|
|
def setup(tmp_path):
|
|
settings = {'review_assistant_accounts': {ACCOUNT: {'enabled': True, 'recipient_conv_id': RECIPIENT}}}
|
|
service = ReviewAssistantCoordinator(tmp_path, lambda: settings, ACCOUNT)
|
|
state = dict(account=ACCOUNT, conv_id=CONV, display_name='测试客户', awaiting_review=True,
|
|
stage='awaiting_review', send_state='', review_reason='新风控', reply_text='未发送的草稿')
|
|
incoming = msg()
|
|
state['assistant_review_id'] = service.ensure_review(state, context(incoming))
|
|
> assert state['assistant_review_id']
|
|
E AssertionError: assert ''
|
|
|
|
C:\wechat_rpa\tests\test_review_assistant.py:39: AssertionError
|
|
_ ERROR at setup of test_untrusted_or_historical_outbound_does_not_complete[changes3] _
|
|
|
|
tmp_path = WindowsPath('C:/Users/isard/AppData/Local/Temp/frozen-customer-notify-xkzhai2q/pytest-tmp/test_untrusted_or_historical_o3')
|
|
|
|
@pytest.fixture
|
|
def setup(tmp_path):
|
|
settings = {'review_assistant_accounts': {ACCOUNT: {'enabled': True, 'recipient_conv_id': RECIPIENT}}}
|
|
service = ReviewAssistantCoordinator(tmp_path, lambda: settings, ACCOUNT)
|
|
state = dict(account=ACCOUNT, conv_id=CONV, display_name='测试客户', awaiting_review=True,
|
|
stage='awaiting_review', send_state='', review_reason='新风控', reply_text='未发送的草稿')
|
|
incoming = msg()
|
|
state['assistant_review_id'] = service.ensure_review(state, context(incoming))
|
|
> assert state['assistant_review_id']
|
|
E AssertionError: assert ''
|
|
|
|
C:\wechat_rpa\tests\test_review_assistant.py:39: AssertionError
|
|
_ ERROR at setup of test_untrusted_or_historical_outbound_does_not_complete[changes4] _
|
|
|
|
tmp_path = WindowsPath('C:/Users/isard/AppData/Local/Temp/frozen-customer-notify-xkzhai2q/pytest-tmp/test_untrusted_or_historical_o4')
|
|
|
|
@pytest.fixture
|
|
def setup(tmp_path):
|
|
settings = {'review_assistant_accounts': {ACCOUNT: {'enabled': True, 'recipient_conv_id': RECIPIENT}}}
|
|
service = ReviewAssistantCoordinator(tmp_path, lambda: settings, ACCOUNT)
|
|
state = dict(account=ACCOUNT, conv_id=CONV, display_name='测试客户', awaiting_review=True,
|
|
stage='awaiting_review', send_state='', review_reason='新风控', reply_text='未发送的草稿')
|
|
incoming = msg()
|
|
state['assistant_review_id'] = service.ensure_review(state, context(incoming))
|
|
> assert state['assistant_review_id']
|
|
E AssertionError: assert ''
|
|
|
|
C:\wechat_rpa\tests\test_review_assistant.py:39: AssertionError
|
|
_ ERROR at setup of test_untrusted_or_historical_outbound_does_not_complete[changes5] _
|
|
|
|
tmp_path = WindowsPath('C:/Users/isard/AppData/Local/Temp/frozen-customer-notify-xkzhai2q/pytest-tmp/test_untrusted_or_historical_o5')
|
|
|
|
@pytest.fixture
|
|
def setup(tmp_path):
|
|
settings = {'review_assistant_accounts': {ACCOUNT: {'enabled': True, 'recipient_conv_id': RECIPIENT}}}
|
|
service = ReviewAssistantCoordinator(tmp_path, lambda: settings, ACCOUNT)
|
|
state = dict(account=ACCOUNT, conv_id=CONV, display_name='测试客户', awaiting_review=True,
|
|
stage='awaiting_review', send_state='', review_reason='新风控', reply_text='未发送的草稿')
|
|
incoming = msg()
|
|
state['assistant_review_id'] = service.ensure_review(state, context(incoming))
|
|
> assert state['assistant_review_id']
|
|
E AssertionError: assert ''
|
|
|
|
C:\wechat_rpa\tests\test_review_assistant.py:39: AssertionError
|
|
_ ERROR at setup of test_untrusted_or_historical_outbound_does_not_complete[changes6] _
|
|
|
|
tmp_path = WindowsPath('C:/Users/isard/AppData/Local/Temp/frozen-customer-notify-xkzhai2q/pytest-tmp/test_untrusted_or_historical_o6')
|
|
|
|
@pytest.fixture
|
|
def setup(tmp_path):
|
|
settings = {'review_assistant_accounts': {ACCOUNT: {'enabled': True, 'recipient_conv_id': RECIPIENT}}}
|
|
service = ReviewAssistantCoordinator(tmp_path, lambda: settings, ACCOUNT)
|
|
state = dict(account=ACCOUNT, conv_id=CONV, display_name='测试客户', awaiting_review=True,
|
|
stage='awaiting_review', send_state='', review_reason='新风控', reply_text='未发送的草稿')
|
|
incoming = msg()
|
|
state['assistant_review_id'] = service.ensure_review(state, context(incoming))
|
|
> assert state['assistant_review_id']
|
|
E AssertionError: assert ''
|
|
|
|
C:\wechat_rpa\tests\test_review_assistant.py:39: AssertionError
|
|
_ ERROR at setup of test_untrusted_or_historical_outbound_does_not_complete[changes7] _
|
|
|
|
tmp_path = WindowsPath('C:/Users/isard/AppData/Local/Temp/frozen-customer-notify-xkzhai2q/pytest-tmp/test_untrusted_or_historical_o7')
|
|
|
|
@pytest.fixture
|
|
def setup(tmp_path):
|
|
settings = {'review_assistant_accounts': {ACCOUNT: {'enabled': True, 'recipient_conv_id': RECIPIENT}}}
|
|
service = ReviewAssistantCoordinator(tmp_path, lambda: settings, ACCOUNT)
|
|
state = dict(account=ACCOUNT, conv_id=CONV, display_name='测试客户', awaiting_review=True,
|
|
stage='awaiting_review', send_state='', review_reason='新风控', reply_text='未发送的草稿')
|
|
incoming = msg()
|
|
state['assistant_review_id'] = service.ensure_review(state, context(incoming))
|
|
> assert state['assistant_review_id']
|
|
E AssertionError: assert ''
|
|
|
|
C:\wechat_rpa\tests\test_review_assistant.py:39: AssertionError
|
|
_ ERROR at setup of test_untrusted_or_historical_outbound_does_not_complete[changes8] _
|
|
|
|
tmp_path = WindowsPath('C:/Users/isard/AppData/Local/Temp/frozen-customer-notify-xkzhai2q/pytest-tmp/test_untrusted_or_historical_o8')
|
|
|
|
@pytest.fixture
|
|
def setup(tmp_path):
|
|
settings = {'review_assistant_accounts': {ACCOUNT: {'enabled': True, 'recipient_conv_id': RECIPIENT}}}
|
|
service = ReviewAssistantCoordinator(tmp_path, lambda: settings, ACCOUNT)
|
|
state = dict(account=ACCOUNT, conv_id=CONV, display_name='测试客户', awaiting_review=True,
|
|
stage='awaiting_review', send_state='', review_reason='新风控', reply_text='未发送的草稿')
|
|
incoming = msg()
|
|
state['assistant_review_id'] = service.ensure_review(state, context(incoming))
|
|
> assert state['assistant_review_id']
|
|
E AssertionError: assert ''
|
|
|
|
C:\wechat_rpa\tests\test_review_assistant.py:39: AssertionError
|
|
_ ERROR at setup of test_untrusted_or_historical_outbound_does_not_complete[changes9] _
|
|
|
|
tmp_path = WindowsPath('C:/Users/isard/AppData/Local/Temp/frozen-customer-notify-xkzhai2q/pytest-tmp/test_untrusted_or_historical_o9')
|
|
|
|
@pytest.fixture
|
|
def setup(tmp_path):
|
|
settings = {'review_assistant_accounts': {ACCOUNT: {'enabled': True, 'recipient_conv_id': RECIPIENT}}}
|
|
service = ReviewAssistantCoordinator(tmp_path, lambda: settings, ACCOUNT)
|
|
state = dict(account=ACCOUNT, conv_id=CONV, display_name='测试客户', awaiting_review=True,
|
|
stage='awaiting_review', send_state='', review_reason='新风控', reply_text='未发送的草稿')
|
|
incoming = msg()
|
|
state['assistant_review_id'] = service.ensure_review(state, context(incoming))
|
|
> assert state['assistant_review_id']
|
|
E AssertionError: assert ''
|
|
|
|
C:\wechat_rpa\tests\test_review_assistant.py:39: AssertionError
|
|
_ ERROR at setup of test_untrusted_or_historical_outbound_does_not_complete[changes10] _
|
|
|
|
tmp_path = WindowsPath('C:/Users/isard/AppData/Local/Temp/frozen-customer-notify-xkzhai2q/pytest-tmp/test_untrusted_or_historical_o10')
|
|
|
|
@pytest.fixture
|
|
def setup(tmp_path):
|
|
settings = {'review_assistant_accounts': {ACCOUNT: {'enabled': True, 'recipient_conv_id': RECIPIENT}}}
|
|
service = ReviewAssistantCoordinator(tmp_path, lambda: settings, ACCOUNT)
|
|
state = dict(account=ACCOUNT, conv_id=CONV, display_name='测试客户', awaiting_review=True,
|
|
stage='awaiting_review', send_state='', review_reason='新风控', reply_text='未发送的草稿')
|
|
incoming = msg()
|
|
state['assistant_review_id'] = service.ensure_review(state, context(incoming))
|
|
> assert state['assistant_review_id']
|
|
E AssertionError: assert ''
|
|
|
|
C:\wechat_rpa\tests\test_review_assistant.py:39: AssertionError
|
|
_ ERROR at setup of test_untrusted_or_historical_outbound_does_not_complete[changes11] _
|
|
|
|
tmp_path = WindowsPath('C:/Users/isard/AppData/Local/Temp/frozen-customer-notify-xkzhai2q/pytest-tmp/test_untrusted_or_historical_o11')
|
|
|
|
@pytest.fixture
|
|
def setup(tmp_path):
|
|
settings = {'review_assistant_accounts': {ACCOUNT: {'enabled': True, 'recipient_conv_id': RECIPIENT}}}
|
|
service = ReviewAssistantCoordinator(tmp_path, lambda: settings, ACCOUNT)
|
|
state = dict(account=ACCOUNT, conv_id=CONV, display_name='测试客户', awaiting_review=True,
|
|
stage='awaiting_review', send_state='', review_reason='新风控', reply_text='未发送的草稿')
|
|
incoming = msg()
|
|
state['assistant_review_id'] = service.ensure_review(state, context(incoming))
|
|
> assert state['assistant_review_id']
|
|
E AssertionError: assert ''
|
|
|
|
C:\wechat_rpa\tests\test_review_assistant.py:39: AssertionError
|
|
_ ERROR at setup of test_untrusted_or_historical_outbound_does_not_complete[changes12] _
|
|
|
|
tmp_path = WindowsPath('C:/Users/isard/AppData/Local/Temp/frozen-customer-notify-xkzhai2q/pytest-tmp/test_untrusted_or_historical_o12')
|
|
|
|
@pytest.fixture
|
|
def setup(tmp_path):
|
|
settings = {'review_assistant_accounts': {ACCOUNT: {'enabled': True, 'recipient_conv_id': RECIPIENT}}}
|
|
service = ReviewAssistantCoordinator(tmp_path, lambda: settings, ACCOUNT)
|
|
state = dict(account=ACCOUNT, conv_id=CONV, display_name='测试客户', awaiting_review=True,
|
|
stage='awaiting_review', send_state='', review_reason='新风控', reply_text='未发送的草稿')
|
|
incoming = msg()
|
|
state['assistant_review_id'] = service.ensure_review(state, context(incoming))
|
|
> assert state['assistant_review_id']
|
|
E AssertionError: assert ''
|
|
|
|
C:\wechat_rpa\tests\test_review_assistant.py:39: AssertionError
|
|
_ ERROR at setup of test_untrusted_or_historical_outbound_does_not_complete[changes13] _
|
|
|
|
tmp_path = WindowsPath('C:/Users/isard/AppData/Local/Temp/frozen-customer-notify-xkzhai2q/pytest-tmp/test_untrusted_or_historical_o13')
|
|
|
|
@pytest.fixture
|
|
def setup(tmp_path):
|
|
settings = {'review_assistant_accounts': {ACCOUNT: {'enabled': True, 'recipient_conv_id': RECIPIENT}}}
|
|
service = ReviewAssistantCoordinator(tmp_path, lambda: settings, ACCOUNT)
|
|
state = dict(account=ACCOUNT, conv_id=CONV, display_name='测试客户', awaiting_review=True,
|
|
stage='awaiting_review', send_state='', review_reason='新风控', reply_text='未发送的草稿')
|
|
incoming = msg()
|
|
state['assistant_review_id'] = service.ensure_review(state, context(incoming))
|
|
> assert state['assistant_review_id']
|
|
E AssertionError: assert ''
|
|
|
|
C:\wechat_rpa\tests\test_review_assistant.py:39: AssertionError
|
|
__ ERROR at setup of test_delivery_protection_survives_human_reply[sending] ___
|
|
|
|
tmp_path = WindowsPath('C:/Users/isard/AppData/Local/Temp/frozen-customer-notify-xkzhai2q/pytest-tmp/test_delivery_protection_survi0')
|
|
|
|
@pytest.fixture
|
|
def setup(tmp_path):
|
|
settings = {'review_assistant_accounts': {ACCOUNT: {'enabled': True, 'recipient_conv_id': RECIPIENT}}}
|
|
service = ReviewAssistantCoordinator(tmp_path, lambda: settings, ACCOUNT)
|
|
state = dict(account=ACCOUNT, conv_id=CONV, display_name='测试客户', awaiting_review=True,
|
|
stage='awaiting_review', send_state='', review_reason='新风控', reply_text='未发送的草稿')
|
|
incoming = msg()
|
|
state['assistant_review_id'] = service.ensure_review(state, context(incoming))
|
|
> assert state['assistant_review_id']
|
|
E AssertionError: assert ''
|
|
|
|
C:\wechat_rpa\tests\test_review_assistant.py:39: AssertionError
|
|
__ ERROR at setup of test_delivery_protection_survives_human_reply[unknown] ___
|
|
|
|
tmp_path = WindowsPath('C:/Users/isard/AppData/Local/Temp/frozen-customer-notify-xkzhai2q/pytest-tmp/test_delivery_protection_survi1')
|
|
|
|
@pytest.fixture
|
|
def setup(tmp_path):
|
|
settings = {'review_assistant_accounts': {ACCOUNT: {'enabled': True, 'recipient_conv_id': RECIPIENT}}}
|
|
service = ReviewAssistantCoordinator(tmp_path, lambda: settings, ACCOUNT)
|
|
state = dict(account=ACCOUNT, conv_id=CONV, display_name='测试客户', awaiting_review=True,
|
|
stage='awaiting_review', send_state='', review_reason='新风控', reply_text='未发送的草稿')
|
|
incoming = msg()
|
|
state['assistant_review_id'] = service.ensure_review(state, context(incoming))
|
|
> assert state['assistant_review_id']
|
|
E AssertionError: assert ''
|
|
|
|
C:\wechat_rpa\tests\test_review_assistant.py:39: AssertionError
|
|
_ ERROR at setup of test_delivery_protection_survives_human_reply[uncertain] __
|
|
|
|
tmp_path = WindowsPath('C:/Users/isard/AppData/Local/Temp/frozen-customer-notify-xkzhai2q/pytest-tmp/test_delivery_protection_survi2')
|
|
|
|
@pytest.fixture
|
|
def setup(tmp_path):
|
|
settings = {'review_assistant_accounts': {ACCOUNT: {'enabled': True, 'recipient_conv_id': RECIPIENT}}}
|
|
service = ReviewAssistantCoordinator(tmp_path, lambda: settings, ACCOUNT)
|
|
state = dict(account=ACCOUNT, conv_id=CONV, display_name='测试客户', awaiting_review=True,
|
|
stage='awaiting_review', send_state='', review_reason='新风控', reply_text='未发送的草稿')
|
|
incoming = msg()
|
|
state['assistant_review_id'] = service.ensure_review(state, context(incoming))
|
|
> assert state['assistant_review_id']
|
|
E AssertionError: assert ''
|
|
|
|
C:\wechat_rpa\tests\test_review_assistant.py:39: AssertionError
|
|
___ ERROR at setup of test_delivery_protection_survives_human_reply[failed] ___
|
|
|
|
tmp_path = WindowsPath('C:/Users/isard/AppData/Local/Temp/frozen-customer-notify-xkzhai2q/pytest-tmp/test_delivery_protection_survi3')
|
|
|
|
@pytest.fixture
|
|
def setup(tmp_path):
|
|
settings = {'review_assistant_accounts': {ACCOUNT: {'enabled': True, 'recipient_conv_id': RECIPIENT}}}
|
|
service = ReviewAssistantCoordinator(tmp_path, lambda: settings, ACCOUNT)
|
|
state = dict(account=ACCOUNT, conv_id=CONV, display_name='测试客户', awaiting_review=True,
|
|
stage='awaiting_review', send_state='', review_reason='新风控', reply_text='未发送的草稿')
|
|
incoming = msg()
|
|
state['assistant_review_id'] = service.ensure_review(state, context(incoming))
|
|
> assert state['assistant_review_id']
|
|
E AssertionError: assert ''
|
|
|
|
C:\wechat_rpa\tests\test_review_assistant.py:39: AssertionError
|
|
_ ERROR at setup of test_delivery_protection_survives_human_reply[sent_uncommitted] _
|
|
|
|
tmp_path = WindowsPath('C:/Users/isard/AppData/Local/Temp/frozen-customer-notify-xkzhai2q/pytest-tmp/test_delivery_protection_survi4')
|
|
|
|
@pytest.fixture
|
|
def setup(tmp_path):
|
|
settings = {'review_assistant_accounts': {ACCOUNT: {'enabled': True, 'recipient_conv_id': RECIPIENT}}}
|
|
service = ReviewAssistantCoordinator(tmp_path, lambda: settings, ACCOUNT)
|
|
state = dict(account=ACCOUNT, conv_id=CONV, display_name='测试客户', awaiting_review=True,
|
|
stage='awaiting_review', send_state='', review_reason='新风控', reply_text='未发送的草稿')
|
|
incoming = msg()
|
|
state['assistant_review_id'] = service.ensure_review(state, context(incoming))
|
|
> assert state['assistant_review_id']
|
|
E AssertionError: assert ''
|
|
|
|
C:\wechat_rpa\tests\test_review_assistant.py:39: AssertionError
|
|
________ ERROR at setup of test_bot_receipt_and_attempt_are_not_human _________
|
|
|
|
tmp_path = WindowsPath('C:/Users/isard/AppData/Local/Temp/frozen-customer-notify-xkzhai2q/pytest-tmp/test_bot_receipt_and_attempt_a0')
|
|
|
|
@pytest.fixture
|
|
def setup(tmp_path):
|
|
settings = {'review_assistant_accounts': {ACCOUNT: {'enabled': True, 'recipient_conv_id': RECIPIENT}}}
|
|
service = ReviewAssistantCoordinator(tmp_path, lambda: settings, ACCOUNT)
|
|
state = dict(account=ACCOUNT, conv_id=CONV, display_name='测试客户', awaiting_review=True,
|
|
stage='awaiting_review', send_state='', review_reason='新风控', reply_text='未发送的草稿')
|
|
incoming = msg()
|
|
state['assistant_review_id'] = service.ensure_review(state, context(incoming))
|
|
> assert state['assistant_review_id']
|
|
E AssertionError: assert ''
|
|
|
|
C:\wechat_rpa\tests\test_review_assistant.py:39: AssertionError
|
|
____ ERROR at setup of test_unknown_native_send_fingerprint_cannot_release ____
|
|
|
|
tmp_path = WindowsPath('C:/Users/isard/AppData/Local/Temp/frozen-customer-notify-xkzhai2q/pytest-tmp/test_unknown_native_send_finge0')
|
|
|
|
@pytest.fixture
|
|
def setup(tmp_path):
|
|
settings = {'review_assistant_accounts': {ACCOUNT: {'enabled': True, 'recipient_conv_id': RECIPIENT}}}
|
|
service = ReviewAssistantCoordinator(tmp_path, lambda: settings, ACCOUNT)
|
|
state = dict(account=ACCOUNT, conv_id=CONV, display_name='测试客户', awaiting_review=True,
|
|
stage='awaiting_review', send_state='', review_reason='新风控', reply_text='未发送的草稿')
|
|
incoming = msg()
|
|
state['assistant_review_id'] = service.ensure_review(state, context(incoming))
|
|
> assert state['assistant_review_id']
|
|
E AssertionError: assert ''
|
|
|
|
C:\wechat_rpa\tests\test_review_assistant.py:39: AssertionError
|
|
_ ERROR at setup of test_local_approve_cancels_reminder_without_granting_resume _
|
|
|
|
tmp_path = WindowsPath('C:/Users/isard/AppData/Local/Temp/frozen-customer-notify-xkzhai2q/pytest-tmp/test_local_approve_cancels_rem0')
|
|
|
|
@pytest.fixture
|
|
def setup(tmp_path):
|
|
settings = {'review_assistant_accounts': {ACCOUNT: {'enabled': True, 'recipient_conv_id': RECIPIENT}}}
|
|
service = ReviewAssistantCoordinator(tmp_path, lambda: settings, ACCOUNT)
|
|
state = dict(account=ACCOUNT, conv_id=CONV, display_name='测试客户', awaiting_review=True,
|
|
stage='awaiting_review', send_state='', review_reason='新风控', reply_text='未发送的草稿')
|
|
incoming = msg()
|
|
state['assistant_review_id'] = service.ensure_review(state, context(incoming))
|
|
> assert state['assistant_review_id']
|
|
E AssertionError: assert ''
|
|
|
|
C:\wechat_rpa\tests\test_review_assistant.py:39: AssertionError
|
|
____ ERROR at setup of test_recipient_excluded_and_account_config_isolated ____
|
|
|
|
tmp_path = WindowsPath('C:/Users/isard/AppData/Local/Temp/frozen-customer-notify-xkzhai2q/pytest-tmp/test_recipient_excluded_and_ac0')
|
|
|
|
@pytest.fixture
|
|
def setup(tmp_path):
|
|
settings = {'review_assistant_accounts': {ACCOUNT: {'enabled': True, 'recipient_conv_id': RECIPIENT}}}
|
|
service = ReviewAssistantCoordinator(tmp_path, lambda: settings, ACCOUNT)
|
|
state = dict(account=ACCOUNT, conv_id=CONV, display_name='测试客户', awaiting_review=True,
|
|
stage='awaiting_review', send_state='', review_reason='新风控', reply_text='未发送的草稿')
|
|
incoming = msg()
|
|
state['assistant_review_id'] = service.ensure_review(state, context(incoming))
|
|
> assert state['assistant_review_id']
|
|
E AssertionError: assert ''
|
|
|
|
C:\wechat_rpa\tests\test_review_assistant.py:39: AssertionError
|
|
________ ERROR at setup of test_notification_has_detail_and_utf8_limit ________
|
|
|
|
tmp_path = WindowsPath('C:/Users/isard/AppData/Local/Temp/frozen-customer-notify-xkzhai2q/pytest-tmp/test_notification_has_detail_a0')
|
|
|
|
@pytest.fixture
|
|
def setup(tmp_path):
|
|
settings = {'review_assistant_accounts': {ACCOUNT: {'enabled': True, 'recipient_conv_id': RECIPIENT}}}
|
|
service = ReviewAssistantCoordinator(tmp_path, lambda: settings, ACCOUNT)
|
|
state = dict(account=ACCOUNT, conv_id=CONV, display_name='测试客户', awaiting_review=True,
|
|
stage='awaiting_review', send_state='', review_reason='新风控', reply_text='未发送的草稿')
|
|
incoming = msg()
|
|
state['assistant_review_id'] = service.ensure_review(state, context(incoming))
|
|
> assert state['assistant_review_id']
|
|
E AssertionError: assert ''
|
|
|
|
C:\wechat_rpa\tests\test_review_assistant.py:39: AssertionError
|
|
___ ERROR at setup of test_notification_success_and_worker_owned_resources ____
|
|
|
|
tmp_path = WindowsPath('C:/Users/isard/AppData/Local/Temp/frozen-customer-notify-xkzhai2q/pytest-tmp/test_notification_success_and_0')
|
|
|
|
@pytest.fixture
|
|
def setup(tmp_path):
|
|
settings = {'review_assistant_accounts': {ACCOUNT: {'enabled': True, 'recipient_conv_id': RECIPIENT}}}
|
|
service = ReviewAssistantCoordinator(tmp_path, lambda: settings, ACCOUNT)
|
|
state = dict(account=ACCOUNT, conv_id=CONV, display_name='测试客户', awaiting_review=True,
|
|
stage='awaiting_review', send_state='', review_reason='新风控', reply_text='未发送的草稿')
|
|
incoming = msg()
|
|
state['assistant_review_id'] = service.ensure_review(state, context(incoming))
|
|
> assert state['assistant_review_id']
|
|
E AssertionError: assert ''
|
|
|
|
C:\wechat_rpa\tests\test_review_assistant.py:39: AssertionError
|
|
_ ERROR at setup of test_notification_outcomes_never_release_customer[DeliveryUnknown-unknown] _
|
|
|
|
tmp_path = WindowsPath('C:/Users/isard/AppData/Local/Temp/frozen-customer-notify-xkzhai2q/pytest-tmp/test_notification_outcomes_nev0')
|
|
|
|
@pytest.fixture
|
|
def setup(tmp_path):
|
|
settings = {'review_assistant_accounts': {ACCOUNT: {'enabled': True, 'recipient_conv_id': RECIPIENT}}}
|
|
service = ReviewAssistantCoordinator(tmp_path, lambda: settings, ACCOUNT)
|
|
state = dict(account=ACCOUNT, conv_id=CONV, display_name='测试客户', awaiting_review=True,
|
|
stage='awaiting_review', send_state='', review_reason='新风控', reply_text='未发送的草稿')
|
|
incoming = msg()
|
|
state['assistant_review_id'] = service.ensure_review(state, context(incoming))
|
|
> assert state['assistant_review_id']
|
|
E AssertionError: assert ''
|
|
|
|
C:\wechat_rpa\tests\test_review_assistant.py:39: AssertionError
|
|
_ ERROR at setup of test_notification_outcomes_never_release_customer[DeliveryFailed-unknown] _
|
|
|
|
tmp_path = WindowsPath('C:/Users/isard/AppData/Local/Temp/frozen-customer-notify-xkzhai2q/pytest-tmp/test_notification_outcomes_nev1')
|
|
|
|
@pytest.fixture
|
|
def setup(tmp_path):
|
|
settings = {'review_assistant_accounts': {ACCOUNT: {'enabled': True, 'recipient_conv_id': RECIPIENT}}}
|
|
service = ReviewAssistantCoordinator(tmp_path, lambda: settings, ACCOUNT)
|
|
state = dict(account=ACCOUNT, conv_id=CONV, display_name='测试客户', awaiting_review=True,
|
|
stage='awaiting_review', send_state='', review_reason='新风控', reply_text='未发送的草稿')
|
|
incoming = msg()
|
|
state['assistant_review_id'] = service.ensure_review(state, context(incoming))
|
|
> assert state['assistant_review_id']
|
|
E AssertionError: assert ''
|
|
|
|
C:\wechat_rpa\tests\test_review_assistant.py:39: AssertionError
|
|
_ ERROR at setup of test_notification_outcomes_never_release_customer[NativeUnavailable-retry] _
|
|
|
|
tmp_path = WindowsPath('C:/Users/isard/AppData/Local/Temp/frozen-customer-notify-xkzhai2q/pytest-tmp/test_notification_outcomes_nev2')
|
|
|
|
@pytest.fixture
|
|
def setup(tmp_path):
|
|
settings = {'review_assistant_accounts': {ACCOUNT: {'enabled': True, 'recipient_conv_id': RECIPIENT}}}
|
|
service = ReviewAssistantCoordinator(tmp_path, lambda: settings, ACCOUNT)
|
|
state = dict(account=ACCOUNT, conv_id=CONV, display_name='测试客户', awaiting_review=True,
|
|
stage='awaiting_review', send_state='', review_reason='新风控', reply_text='未发送的草稿')
|
|
incoming = msg()
|
|
state['assistant_review_id'] = service.ensure_review(state, context(incoming))
|
|
> assert state['assistant_review_id']
|
|
E AssertionError: assert ''
|
|
|
|
C:\wechat_rpa\tests\test_review_assistant.py:39: AssertionError
|
|
_ ERROR at setup of test_notification_outcomes_never_release_customer[SendCancelled-retry] _
|
|
|
|
tmp_path = WindowsPath('C:/Users/isard/AppData/Local/Temp/frozen-customer-notify-xkzhai2q/pytest-tmp/test_notification_outcomes_nev3')
|
|
|
|
@pytest.fixture
|
|
def setup(tmp_path):
|
|
settings = {'review_assistant_accounts': {ACCOUNT: {'enabled': True, 'recipient_conv_id': RECIPIENT}}}
|
|
service = ReviewAssistantCoordinator(tmp_path, lambda: settings, ACCOUNT)
|
|
state = dict(account=ACCOUNT, conv_id=CONV, display_name='测试客户', awaiting_review=True,
|
|
stage='awaiting_review', send_state='', review_reason='新风控', reply_text='未发送的草稿')
|
|
incoming = msg()
|
|
state['assistant_review_id'] = service.ensure_review(state, context(incoming))
|
|
> assert state['assistant_review_id']
|
|
E AssertionError: assert ''
|
|
|
|
C:\wechat_rpa\tests\test_review_assistant.py:39: AssertionError
|
|
_ ERROR at setup of test_recipient_or_account_change_never_sends[False-1688856770803435] _
|
|
|
|
tmp_path = WindowsPath('C:/Users/isard/AppData/Local/Temp/frozen-customer-notify-xkzhai2q/pytest-tmp/test_recipient_or_account_chan0')
|
|
|
|
@pytest.fixture
|
|
def setup(tmp_path):
|
|
settings = {'review_assistant_accounts': {ACCOUNT: {'enabled': True, 'recipient_conv_id': RECIPIENT}}}
|
|
service = ReviewAssistantCoordinator(tmp_path, lambda: settings, ACCOUNT)
|
|
state = dict(account=ACCOUNT, conv_id=CONV, display_name='测试客户', awaiting_review=True,
|
|
stage='awaiting_review', send_state='', review_reason='新风控', reply_text='未发送的草稿')
|
|
incoming = msg()
|
|
state['assistant_review_id'] = service.ensure_review(state, context(incoming))
|
|
> assert state['assistant_review_id']
|
|
E AssertionError: assert ''
|
|
|
|
C:\wechat_rpa\tests\test_review_assistant.py:39: AssertionError
|
|
__ ERROR at setup of test_recipient_or_account_change_never_sends[True-999] ___
|
|
|
|
tmp_path = WindowsPath('C:/Users/isard/AppData/Local/Temp/frozen-customer-notify-xkzhai2q/pytest-tmp/test_recipient_or_account_chan1')
|
|
|
|
@pytest.fixture
|
|
def setup(tmp_path):
|
|
settings = {'review_assistant_accounts': {ACCOUNT: {'enabled': True, 'recipient_conv_id': RECIPIENT}}}
|
|
service = ReviewAssistantCoordinator(tmp_path, lambda: settings, ACCOUNT)
|
|
state = dict(account=ACCOUNT, conv_id=CONV, display_name='测试客户', awaiting_review=True,
|
|
stage='awaiting_review', send_state='', review_reason='新风控', reply_text='未发送的草稿')
|
|
incoming = msg()
|
|
state['assistant_review_id'] = service.ensure_review(state, context(incoming))
|
|
> assert state['assistant_review_id']
|
|
E AssertionError: assert ''
|
|
|
|
C:\wechat_rpa\tests\test_review_assistant.py:39: AssertionError
|
|
_ ERROR at setup of test_completed_or_changed_recipient_cancels_queued_notification _
|
|
|
|
tmp_path = WindowsPath('C:/Users/isard/AppData/Local/Temp/frozen-customer-notify-xkzhai2q/pytest-tmp/test_completed_or_changed_reci0')
|
|
|
|
@pytest.fixture
|
|
def setup(tmp_path):
|
|
settings = {'review_assistant_accounts': {ACCOUNT: {'enabled': True, 'recipient_conv_id': RECIPIENT}}}
|
|
service = ReviewAssistantCoordinator(tmp_path, lambda: settings, ACCOUNT)
|
|
state = dict(account=ACCOUNT, conv_id=CONV, display_name='测试客户', awaiting_review=True,
|
|
stage='awaiting_review', send_state='', review_reason='新风控', reply_text='未发送的草稿')
|
|
incoming = msg()
|
|
state['assistant_review_id'] = service.ensure_review(state, context(incoming))
|
|
> assert state['assistant_review_id']
|
|
E AssertionError: assert ''
|
|
|
|
C:\wechat_rpa\tests\test_review_assistant.py:39: AssertionError
|
|
_ ERROR at setup of test_cancel_while_disabled_closes_episode_without_resuming _
|
|
|
|
tmp_path = WindowsPath('C:/Users/isard/AppData/Local/Temp/frozen-customer-notify-xkzhai2q/pytest-tmp/test_cancel_while_disabled_clo0')
|
|
|
|
@pytest.fixture
|
|
def setup(tmp_path):
|
|
settings = {'review_assistant_accounts': {ACCOUNT: {'enabled': True, 'recipient_conv_id': RECIPIENT}}}
|
|
service = ReviewAssistantCoordinator(tmp_path, lambda: settings, ACCOUNT)
|
|
state = dict(account=ACCOUNT, conv_id=CONV, display_name='测试客户', awaiting_review=True,
|
|
stage='awaiting_review', send_state='', review_reason='新风控', reply_text='未发送的草稿')
|
|
incoming = msg()
|
|
state['assistant_review_id'] = service.ensure_review(state, context(incoming))
|
|
> assert state['assistant_review_id']
|
|
E AssertionError: assert ''
|
|
|
|
C:\wechat_rpa\tests\test_review_assistant.py:39: AssertionError
|
|
____ ERROR at setup of test_old_cancel_tombstone_does_not_clear_new_resume ____
|
|
|
|
tmp_path = WindowsPath('C:/Users/isard/AppData/Local/Temp/frozen-customer-notify-xkzhai2q/pytest-tmp/test_old_cancel_tombstone_does0')
|
|
|
|
@pytest.fixture
|
|
def setup(tmp_path):
|
|
settings = {'review_assistant_accounts': {ACCOUNT: {'enabled': True, 'recipient_conv_id': RECIPIENT}}}
|
|
service = ReviewAssistantCoordinator(tmp_path, lambda: settings, ACCOUNT)
|
|
state = dict(account=ACCOUNT, conv_id=CONV, display_name='测试客户', awaiting_review=True,
|
|
stage='awaiting_review', send_state='', review_reason='新风控', reply_text='未发送的草稿')
|
|
incoming = msg()
|
|
state['assistant_review_id'] = service.ensure_review(state, context(incoming))
|
|
> assert state['assistant_review_id']
|
|
E AssertionError: assert ''
|
|
|
|
C:\wechat_rpa\tests\test_review_assistant.py:39: AssertionError
|
|
================================== FAILURES ===================================
|
|
_ test_customer_recipient_m_and_both_s_orders_send_reminder[M:7881302444555666] _
|
|
|
|
tmp_path = WindowsPath('C:/Users/isard/AppData/Local/Temp/frozen-customer-notify-xkzhai2q/pytest-tmp/test_customer_recipient_m_and_0')
|
|
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x00000162701880E0>
|
|
recipient = 'M:7881302444555666'
|
|
|
|
@pytest.mark.parametrize('recipient', RECIPIENTS)
|
|
def test_customer_recipient_m_and_both_s_orders_send_reminder(tmp_path, monkeypatch, recipient):
|
|
service, _ = make_service(tmp_path, recipient)
|
|
> add_episode(service)
|
|
|
|
C:\wechat_rpa\tests\test_review_customer_notifications.py:87:
|
|
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
|
|
service = <review_assistant.ReviewAssistantCoordinator object at 0x00000162701892B0>
|
|
|
|
def add_episode(service):
|
|
state = {'account': ACCOUNT, 'conv_id': CUSTOMER, 'display_name': '合成客户',
|
|
'awaiting_review': True, 'stage': 'awaiting_review', 'send_state': '',
|
|
'review_reason': '合成审核原因', 'reply_text': '未发送的合成草稿'}
|
|
state['assistant_review_id'] = service.ensure_review(state, make_context())
|
|
> assert state['assistant_review_id']
|
|
E AssertionError: assert ''
|
|
|
|
C:\wechat_rpa\tests\test_review_customer_notifications.py:47: AssertionError
|
|
_ test_customer_recipient_m_and_both_s_orders_send_reminder[S:1688856770803435_7881302444555666] _
|
|
|
|
tmp_path = WindowsPath('C:/Users/isard/AppData/Local/Temp/frozen-customer-notify-xkzhai2q/pytest-tmp/test_customer_recipient_m_and_1')
|
|
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x0000016271719790>
|
|
recipient = 'S:1688856770803435_7881302444555666'
|
|
|
|
@pytest.mark.parametrize('recipient', RECIPIENTS)
|
|
def test_customer_recipient_m_and_both_s_orders_send_reminder(tmp_path, monkeypatch, recipient):
|
|
service, _ = make_service(tmp_path, recipient)
|
|
> add_episode(service)
|
|
|
|
C:\wechat_rpa\tests\test_review_customer_notifications.py:87:
|
|
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
|
|
service = <review_assistant.ReviewAssistantCoordinator object at 0x0000016271719610>
|
|
|
|
def add_episode(service):
|
|
state = {'account': ACCOUNT, 'conv_id': CUSTOMER, 'display_name': '合成客户',
|
|
'awaiting_review': True, 'stage': 'awaiting_review', 'send_state': '',
|
|
'review_reason': '合成审核原因', 'reply_text': '未发送的合成草稿'}
|
|
state['assistant_review_id'] = service.ensure_review(state, make_context())
|
|
> assert state['assistant_review_id']
|
|
E AssertionError: assert ''
|
|
|
|
C:\wechat_rpa\tests\test_review_customer_notifications.py:47: AssertionError
|
|
_ test_customer_recipient_m_and_both_s_orders_send_reminder[S:7881302444555666_1688856770803435] _
|
|
|
|
tmp_path = WindowsPath('C:/Users/isard/AppData/Local/Temp/frozen-customer-notify-xkzhai2q/pytest-tmp/test_customer_recipient_m_and_2')
|
|
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x0000016271718590>
|
|
recipient = 'S:7881302444555666_1688856770803435'
|
|
|
|
@pytest.mark.parametrize('recipient', RECIPIENTS)
|
|
def test_customer_recipient_m_and_both_s_orders_send_reminder(tmp_path, monkeypatch, recipient):
|
|
service, _ = make_service(tmp_path, recipient)
|
|
> add_episode(service)
|
|
|
|
C:\wechat_rpa\tests\test_review_customer_notifications.py:87:
|
|
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
|
|
service = <review_assistant.ReviewAssistantCoordinator object at 0x0000016271719DF0>
|
|
|
|
def add_episode(service):
|
|
state = {'account': ACCOUNT, 'conv_id': CUSTOMER, 'display_name': '合成客户',
|
|
'awaiting_review': True, 'stage': 'awaiting_review', 'send_state': '',
|
|
'review_reason': '合成审核原因', 'reply_text': '未发送的合成草稿'}
|
|
state['assistant_review_id'] = service.ensure_review(state, make_context())
|
|
> assert state['assistant_review_id']
|
|
E AssertionError: assert ''
|
|
|
|
C:\wechat_rpa\tests\test_review_customer_notifications.py:47: AssertionError
|
|
_ test_assistant_s_incoming_does_not_create_or_approve_customer_review[S:1688856770803435_7881302444555666] _
|
|
|
|
tmp_path = WindowsPath('C:/Users/isard/AppData/Local/Temp/frozen-customer-notify-xkzhai2q/pytest-tmp/test_assistant_s_incoming_does0')
|
|
recipient = 'S:1688856770803435_7881302444555666'
|
|
|
|
@pytest.mark.parametrize('recipient', RECIPIENTS[1:])
|
|
def test_assistant_s_incoming_does_not_create_or_approve_customer_review(tmp_path, recipient):
|
|
service, _ = make_service(tmp_path, recipient)
|
|
> state = add_episode(service)
|
|
^^^^^^^^^^^^^^^^^^^^
|
|
|
|
C:\wechat_rpa\tests\test_review_customer_notifications.py:105:
|
|
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
|
|
service = <review_assistant.ReviewAssistantCoordinator object at 0x0000016271719EE0>
|
|
|
|
def add_episode(service):
|
|
state = {'account': ACCOUNT, 'conv_id': CUSTOMER, 'display_name': '合成客户',
|
|
'awaiting_review': True, 'stage': 'awaiting_review', 'send_state': '',
|
|
'review_reason': '合成审核原因', 'reply_text': '未发送的合成草稿'}
|
|
state['assistant_review_id'] = service.ensure_review(state, make_context())
|
|
> assert state['assistant_review_id']
|
|
E AssertionError: assert ''
|
|
|
|
C:\wechat_rpa\tests\test_review_customer_notifications.py:47: AssertionError
|
|
_ test_assistant_s_incoming_does_not_create_or_approve_customer_review[S:7881302444555666_1688856770803435] _
|
|
|
|
tmp_path = WindowsPath('C:/Users/isard/AppData/Local/Temp/frozen-customer-notify-xkzhai2q/pytest-tmp/test_assistant_s_incoming_does1')
|
|
recipient = 'S:7881302444555666_1688856770803435'
|
|
|
|
@pytest.mark.parametrize('recipient', RECIPIENTS[1:])
|
|
def test_assistant_s_incoming_does_not_create_or_approve_customer_review(tmp_path, recipient):
|
|
service, _ = make_service(tmp_path, recipient)
|
|
> state = add_episode(service)
|
|
^^^^^^^^^^^^^^^^^^^^
|
|
|
|
C:\wechat_rpa\tests\test_review_customer_notifications.py:105:
|
|
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
|
|
service = <review_assistant.ReviewAssistantCoordinator object at 0x0000016271857E90>
|
|
|
|
def add_episode(service):
|
|
state = {'account': ACCOUNT, 'conv_id': CUSTOMER, 'display_name': '合成客户',
|
|
'awaiting_review': True, 'stage': 'awaiting_review', 'send_state': '',
|
|
'review_reason': '合成审核原因', 'reply_text': '未发送的合成草稿'}
|
|
state['assistant_review_id'] = service.ensure_review(state, make_context())
|
|
> assert state['assistant_review_id']
|
|
E AssertionError: assert ''
|
|
|
|
C:\wechat_rpa\tests\test_review_customer_notifications.py:47: AssertionError
|
|
_ test_relationship_revoked_or_unreadable_at_final_native_guard_blocks_send[last_check0] _
|
|
|
|
tmp_path = WindowsPath('C:/Users/isard/AppData/Local/Temp/frozen-customer-notify-xkzhai2q/pytest-tmp/test_relationship_revoked_or_u0')
|
|
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x0000016271854CB0>
|
|
last_check = {'ok': False, 'reason': '客户关系已解除'}
|
|
|
|
@pytest.mark.parametrize('last_check', [{'ok': False, 'reason': '客户关系已解除'},
|
|
RuntimeError('合成关系读取失败')])
|
|
def test_relationship_revoked_or_unreadable_at_final_native_guard_blocks_send(tmp_path, monkeypatch, last_check):
|
|
service, _ = make_service(tmp_path, RECIPIENTS[1])
|
|
> add_episode(service)
|
|
|
|
C:\wechat_rpa\tests\test_review_customer_notifications.py:132:
|
|
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
|
|
service = <review_assistant.ReviewAssistantCoordinator object at 0x0000016271856690>
|
|
|
|
def add_episode(service):
|
|
state = {'account': ACCOUNT, 'conv_id': CUSTOMER, 'display_name': '合成客户',
|
|
'awaiting_review': True, 'stage': 'awaiting_review', 'send_state': '',
|
|
'review_reason': '合成审核原因', 'reply_text': '未发送的合成草稿'}
|
|
state['assistant_review_id'] = service.ensure_review(state, make_context())
|
|
> assert state['assistant_review_id']
|
|
E AssertionError: assert ''
|
|
|
|
C:\wechat_rpa\tests\test_review_customer_notifications.py:47: AssertionError
|
|
_ test_relationship_revoked_or_unreadable_at_final_native_guard_blocks_send[last_check1] _
|
|
|
|
tmp_path = WindowsPath('C:/Users/isard/AppData/Local/Temp/frozen-customer-notify-xkzhai2q/pytest-tmp/test_relationship_revoked_or_u1')
|
|
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x0000016271855D90>
|
|
last_check = RuntimeError('合成关系读取失败')
|
|
|
|
@pytest.mark.parametrize('last_check', [{'ok': False, 'reason': '客户关系已解除'},
|
|
RuntimeError('合成关系读取失败')])
|
|
def test_relationship_revoked_or_unreadable_at_final_native_guard_blocks_send(tmp_path, monkeypatch, last_check):
|
|
service, _ = make_service(tmp_path, RECIPIENTS[1])
|
|
> add_episode(service)
|
|
|
|
C:\wechat_rpa\tests\test_review_customer_notifications.py:132:
|
|
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
|
|
service = <review_assistant.ReviewAssistantCoordinator object at 0x0000016271855730>
|
|
|
|
def add_episode(service):
|
|
state = {'account': ACCOUNT, 'conv_id': CUSTOMER, 'display_name': '合成客户',
|
|
'awaiting_review': True, 'stage': 'awaiting_review', 'send_state': '',
|
|
'review_reason': '合成审核原因', 'reply_text': '未发送的合成草稿'}
|
|
state['assistant_review_id'] = service.ensure_review(state, make_context())
|
|
> assert state['assistant_review_id']
|
|
E AssertionError: assert ''
|
|
|
|
C:\wechat_rpa\tests\test_review_customer_notifications.py:47: AssertionError
|
|
_____ test_recipient_changed_during_fresh_relationship_check_blocks_send ______
|
|
|
|
tmp_path = WindowsPath('C:/Users/isard/AppData/Local/Temp/frozen-customer-notify-xkzhai2q/pytest-tmp/test_recipient_changed_during_0')
|
|
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x00000162717194F0>
|
|
|
|
def test_recipient_changed_during_fresh_relationship_check_blocks_send(tmp_path, monkeypatch):
|
|
service, settings = make_service(tmp_path, RECIPIENTS[1])
|
|
> add_episode(service)
|
|
|
|
C:\wechat_rpa\tests\test_review_customer_notifications.py:143:
|
|
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
|
|
service = <review_assistant.ReviewAssistantCoordinator object at 0x0000016271718B00>
|
|
|
|
def add_episode(service):
|
|
state = {'account': ACCOUNT, 'conv_id': CUSTOMER, 'display_name': '合成客户',
|
|
'awaiting_review': True, 'stage': 'awaiting_review', 'send_state': '',
|
|
'review_reason': '合成审核原因', 'reply_text': '未发送的合成草稿'}
|
|
state['assistant_review_id'] = service.ensure_review(state, make_context())
|
|
> assert state['assistant_review_id']
|
|
E AssertionError: assert ''
|
|
|
|
C:\wechat_rpa\tests\test_review_customer_notifications.py:47: AssertionError
|
|
__________ test_unknown_notification_survives_restart_without_retry ___________
|
|
|
|
tmp_path = WindowsPath('C:/Users/isard/AppData/Local/Temp/frozen-customer-notify-xkzhai2q/pytest-tmp/test_unknown_notification_surv0')
|
|
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x0000016271719D90>
|
|
|
|
def test_unknown_notification_survives_restart_without_retry(tmp_path, monkeypatch):
|
|
service, settings = make_service(tmp_path, RECIPIENTS[1])
|
|
> add_episode(service)
|
|
|
|
C:\wechat_rpa\tests\test_review_customer_notifications.py:163:
|
|
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
|
|
service = <review_assistant.ReviewAssistantCoordinator object at 0x000001627171AC90>
|
|
|
|
def add_episode(service):
|
|
state = {'account': ACCOUNT, 'conv_id': CUSTOMER, 'display_name': '合成客户',
|
|
'awaiting_review': True, 'stage': 'awaiting_review', 'send_state': '',
|
|
'review_reason': '合成审核原因', 'reply_text': '未发送的合成草稿'}
|
|
state['assistant_review_id'] = service.ensure_review(state, make_context())
|
|
> assert state['assistant_review_id']
|
|
E AssertionError: assert ''
|
|
|
|
C:\wechat_rpa\tests\test_review_customer_notifications.py:47: AssertionError
|
|
=========================== short test summary info ===========================
|
|
FAILED ::test_customer_recipient_m_and_both_s_orders_send_reminder[M:7881302444555666]
|
|
FAILED ::test_customer_recipient_m_and_both_s_orders_send_reminder[S:1688856770803435_7881302444555666]
|
|
FAILED ::test_customer_recipient_m_and_both_s_orders_send_reminder[S:7881302444555666_1688856770803435]
|
|
FAILED ::test_assistant_s_incoming_does_not_create_or_approve_customer_review[S:1688856770803435_7881302444555666]
|
|
FAILED ::test_assistant_s_incoming_does_not_create_or_approve_customer_review[S:7881302444555666_1688856770803435]
|
|
FAILED ::test_relationship_revoked_or_unreadable_at_final_native_guard_blocks_send[last_check0]
|
|
FAILED ::test_relationship_revoked_or_unreadable_at_final_native_guard_blocks_send[last_check1]
|
|
FAILED ::test_recipient_changed_during_fresh_relationship_check_blocks_send
|
|
FAILED ::test_unknown_notification_survives_restart_without_retry - Assertion...
|
|
ERROR ::test_deduplicate_episode_and_restart - AssertionError: assert ''
|
|
ERROR ::test_human_completion_is_idempotent_and_new_risk_is_new_episode - Ass...
|
|
ERROR ::test_untrusted_or_historical_outbound_does_not_complete[changes0] - A...
|
|
ERROR ::test_untrusted_or_historical_outbound_does_not_complete[changes1] - A...
|
|
ERROR ::test_untrusted_or_historical_outbound_does_not_complete[changes2] - A...
|
|
ERROR ::test_untrusted_or_historical_outbound_does_not_complete[changes3] - A...
|
|
ERROR ::test_untrusted_or_historical_outbound_does_not_complete[changes4] - A...
|
|
ERROR ::test_untrusted_or_historical_outbound_does_not_complete[changes5] - A...
|
|
ERROR ::test_untrusted_or_historical_outbound_does_not_complete[changes6] - A...
|
|
ERROR ::test_untrusted_or_historical_outbound_does_not_complete[changes7] - A...
|
|
ERROR ::test_untrusted_or_historical_outbound_does_not_complete[changes8] - A...
|
|
ERROR ::test_untrusted_or_historical_outbound_does_not_complete[changes9] - A...
|
|
ERROR ::test_untrusted_or_historical_outbound_does_not_complete[changes10] - ...
|
|
ERROR ::test_untrusted_or_historical_outbound_does_not_complete[changes11] - ...
|
|
ERROR ::test_untrusted_or_historical_outbound_does_not_complete[changes12] - ...
|
|
ERROR ::test_untrusted_or_historical_outbound_does_not_complete[changes13] - ...
|
|
ERROR ::test_delivery_protection_survives_human_reply[sending] - AssertionErr...
|
|
ERROR ::test_delivery_protection_survives_human_reply[unknown] - AssertionErr...
|
|
ERROR ::test_delivery_protection_survives_human_reply[uncertain] - AssertionE...
|
|
ERROR ::test_delivery_protection_survives_human_reply[failed] - AssertionErro...
|
|
ERROR ::test_delivery_protection_survives_human_reply[sent_uncommitted] - Ass...
|
|
ERROR ::test_bot_receipt_and_attempt_are_not_human - AssertionError: assert ''
|
|
ERROR ::test_unknown_native_send_fingerprint_cannot_release - AssertionError:...
|
|
ERROR ::test_local_approve_cancels_reminder_without_granting_resume - Asserti...
|
|
ERROR ::test_recipient_excluded_and_account_config_isolated - AssertionError:...
|
|
ERROR ::test_notification_has_detail_and_utf8_limit - AssertionError: assert ''
|
|
ERROR ::test_notification_success_and_worker_owned_resources - AssertionError...
|
|
ERROR ::test_notification_outcomes_never_release_customer[DeliveryUnknown-unknown]
|
|
ERROR ::test_notification_outcomes_never_release_customer[DeliveryFailed-unknown]
|
|
ERROR ::test_notification_outcomes_never_release_customer[NativeUnavailable-retry]
|
|
ERROR ::test_notification_outcomes_never_release_customer[SendCancelled-retry]
|
|
ERROR ::test_recipient_or_account_change_never_sends[False-1688856770803435]
|
|
ERROR ::test_recipient_or_account_change_never_sends[True-999] - AssertionErr...
|
|
ERROR ::test_completed_or_changed_recipient_cancels_queued_notification - Ass...
|
|
ERROR ::test_cancel_while_disabled_closes_episode_without_resuming - Assertio...
|
|
ERROR ::test_old_cancel_tombstone_does_not_clear_new_resume - AssertionError:...
|
|
9 failed, 7 passed, 36 errors in 1.28s
|