fix(production): UC 入库编码自动派发脐带MSC五步任务
样本接收 UC… 此前无内置匹配规则导致工单空任务;新增 5 步原代培养模版与回补脚本,且不影响 BC 六步模版。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
2124ce9208
commit
50679fa75e
6 files changed
+1058
-8
No files matched your search
@@ -1,19 +1,36 @@
|
||||
import unittest
|
||||
|
||||
from app.utils.lab_storage_code_task_set import match_builtin_task_set_name_by_lab_storage_code
|
||||
from app.utils.lab_storage_code_task_set import (
|
||||
BC_MSC_BUILTIN_SET_NAME,
|
||||
HSC_BUILTIN_SET_NAME,
|
||||
UC_MSC_BUILTIN_SET_NAME,
|
||||
match_builtin_task_set_name_by_lab_storage_code,
|
||||
)
|
||||
|
||||
|
||||
class TestMatchBuiltinTaskSetName(unittest.TestCase):
|
||||
def test_bc_before_b(self):
|
||||
self.assertEqual(
|
||||
match_builtin_task_set_name_by_lab_storage_code("BC20260101"),
|
||||
"干细胞培养(内置模版)",
|
||||
BC_MSC_BUILTIN_SET_NAME,
|
||||
)
|
||||
|
||||
def test_b_only(self):
|
||||
self.assertEqual(
|
||||
match_builtin_task_set_name_by_lab_storage_code("B20260101"),
|
||||
"造血干样本处理(内置模版)",
|
||||
HSC_BUILTIN_SET_NAME,
|
||||
)
|
||||
|
||||
def test_uc_msc(self):
|
||||
self.assertEqual(
|
||||
match_builtin_task_set_name_by_lab_storage_code("UC2026010"),
|
||||
UC_MSC_BUILTIN_SET_NAME,
|
||||
)
|
||||
|
||||
def test_uc_case_insensitive(self):
|
||||
self.assertEqual(
|
||||
match_builtin_task_set_name_by_lab_storage_code("uc2026016"),
|
||||
UC_MSC_BUILTIN_SET_NAME,
|
||||
)
|
||||
|
||||
def test_ubmc(self):
|
||||
@@ -35,7 +52,7 @@ class TestMatchBuiltinTaskSetName(unittest.TestCase):
|
||||
def test_bc_case_insensitive(self):
|
||||
self.assertEqual(
|
||||
match_builtin_task_set_name_by_lab_storage_code("bc99"),
|
||||
"干细胞培养(内置模版)",
|
||||
BC_MSC_BUILTIN_SET_NAME,
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user