feat(shipping-notice): 新增通用解析能力,优化性能并清理遗留废弃代码
This commit is contained in:
1 parent
935bf26fa6
commit
7cfd5d167e
230 files changed
+9337
-10989
No files matched your search
@@ -36,7 +36,7 @@ def test_handler_error_rolls_back_before_mark_failed(monkeypatch):
|
||||
class _Db:
|
||||
session = _Session()
|
||||
|
||||
job = {'id': 939, 'job_type': 'shipping_auto_progress', 'attempts': 1, 'payload': {}}
|
||||
job = {'id': 939, 'job_type': 'shipping_process_gate', 'attempts': 1, 'payload': {}}
|
||||
monkeypatch.setattr(runner.store, 'claim_next', lambda **_kwargs: job)
|
||||
monkeypatch.setattr(runner, 'get_handler', lambda _job_type: lambda *_args: (_ for _ in ()).throw(RuntimeError('db failed')))
|
||||
monkeypatch.setattr(runner.store, 'mark_failed', lambda *_args, **_kwargs: (events.append('mark_failed'), (_ for _ in ()).throw(StopIteration)))
|
||||
|
||||
Reference in new issue
Block a user