fix(plating-tests): correct AVL model name (fusion.plating.avl)
Implementer-flagged concern: plan template referenced fp.approved.vendor.list but actual model id is fusion.plating.avl. Tests were silently skipping instead of exercising the AVL split. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -69,15 +69,15 @@ class TestQualitySplit(TransactionCase):
|
||||
|
||||
# AVL: Manager read-only, QM full
|
||||
def test_manager_can_read_avl(self):
|
||||
Avl = self.env.get('fp.approved.vendor.list')
|
||||
Avl = self.env.get('fusion.plating.avl')
|
||||
if not Avl:
|
||||
self.skipTest('fp.approved.vendor.list model not available')
|
||||
self.skipTest('fusion.plating.avl model not available')
|
||||
Avl.with_user(self.u_mgr).check_access_rights('read')
|
||||
|
||||
def test_manager_cannot_write_avl(self):
|
||||
Avl = self.env.get('fp.approved.vendor.list')
|
||||
Avl = self.env.get('fusion.plating.avl')
|
||||
if not Avl:
|
||||
self.skipTest('fp.approved.vendor.list model not available')
|
||||
self.skipTest('fusion.plating.avl model not available')
|
||||
with self.assertRaises(AccessError):
|
||||
Avl.with_user(self.u_mgr).check_access_rights('write')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user