forked from erp-dev/erp
feat: added wecom notify when printing_job production was completed(new status) and shipment was created
This commit is contained in:
@@ -21,3 +21,22 @@ class WeComMarkdownRenderTest(SimpleTestCase):
|
||||
md = render_process_params_markdown(params={"图片": " https://example.com/a.png "})
|
||||
self.assertIn("[https://example.com/a.png](https://example.com/a.png)", md)
|
||||
|
||||
def test_render_printing_job_production_completed_markdown(self):
|
||||
from printing.services import render_printing_job_production_completed_markdown
|
||||
|
||||
md = render_printing_job_production_completed_markdown(
|
||||
printing_order_identifier="EXT-001",
|
||||
printing_job_id="123",
|
||||
product_name="测试产品",
|
||||
unshipped_sales_items_count="2",
|
||||
unshipped_sales_items_quantity="88.50",
|
||||
sender_label="张三",
|
||||
)
|
||||
|
||||
self.assertIn("印染任务已完成生产", md)
|
||||
self.assertIn("`EXT-001`", md)
|
||||
self.assertIn("`123`", md)
|
||||
self.assertIn("测试产品", md)
|
||||
self.assertIn("`2`", md)
|
||||
self.assertIn("`88.50`", md)
|
||||
self.assertIn("张三", md)
|
||||
|
||||
Reference in New Issue
Block a user