feat: the Administrador may release orders to Finalizado too
All checks were successful
Build and deploy / Validate source (push) Successful in 5s
Build and deploy / Integration suite on a real stack (push) Successful in 3m34s
Build and deploy / Secret scan and release gate (push) Successful in 4s
Build and deploy / Publish images (push) Successful in 1m1s
All checks were successful
Build and deploy / Validate source (push) Successful in 5s
Build and deploy / Integration suite on a real stack (push) Successful in 3m34s
Build and deploy / Secret scan and release gate (push) Successful in 4s
Build and deploy / Publish images (push) Successful in 1m1s
D-29 keeps the release with the Revisor, so nobody in the room releases their own print; the Administrador, Dropstar's own login, may release as well (the user, 2026-10-28). Gestao, Designer and Operador still cannot. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -28,9 +28,9 @@ class MovesTest(unittest.TestCase):
|
||||
self.assertFalse(may_move('gestao', *pair), pair)
|
||||
self.assertTrue(may_move('admin', *pair), pair)
|
||||
|
||||
def test_only_the_revisor_releases_to_finalizado(self):
|
||||
def test_the_revisor_and_the_administrator_release_to_finalizado(self):
|
||||
for role in ROLES:
|
||||
self.assertEqual(may_move(role, 'rev', 'fin'), role in ('revisor', 'superadmin'), role)
|
||||
self.assertEqual(may_move(role, 'rev', 'fin'), role in ('revisor', 'admin', 'superadmin'), role)
|
||||
|
||||
def test_a_step_back_belongs_to_whoever_makes_the_move_it_undoes(self):
|
||||
self.assertTrue(may_move('operador', 'rev', 'imp', back=True))
|
||||
|
||||
Reference in New Issue
Block a user