修复(账号选号): 已分配账号不再进入自动选号池
自动选号只允许未归属账号;已分配给客服、运营或管理员的账号必须先释放归属,才能重新参与自动选号。
This commit is contained in:
@@ -1475,7 +1475,7 @@ class TestAccountSelection(_Base):
|
||||
assert detail["task"]["executionStatus"] == "ready"
|
||||
assert detail["task"]["issueCode"] == "capability_cache_miss"
|
||||
|
||||
def test_live_candidates_include_support_accounts_and_prefer_valid_cache(self):
|
||||
def test_live_candidates_exclude_support_assigned_accounts(self):
|
||||
support = User(
|
||||
username="pool-support",
|
||||
password_hash="h",
|
||||
@@ -1517,7 +1517,7 @@ class TestAccountSelection(_Base):
|
||||
required_points=1680,
|
||||
)
|
||||
|
||||
assert [row.id for row in rows] == [valid.id, invalid.id]
|
||||
assert [row.id for row in rows] == [invalid.id]
|
||||
|
||||
def test_points_short_is_soft_and_does_not_block_allocation(self):
|
||||
account = self.account("points-short", points=100)
|
||||
|
||||
Reference in New Issue
Block a user