Commit 4c8daebb authored by Claude Paroz's avatar Claude Paroz

Remove ToReview state as a choice for translators

parent e5c632d6
......@@ -152,10 +152,10 @@ class StateTranslated(State):
if person.is_reviewer(self.language.team):
action_names.append('RP')
action_names.append('TR')
if person.is_translator(self.language.team):
action_names.append('RT')
action_names.append('TR')
if person.is_committer(self.language.team):
action_names.append('TC')
......
......@@ -99,14 +99,14 @@ class VertimusTest(TeamsAndRolesTests):
self.assertEqual(action_names, ['WC'])
action_names = [a.name for a in state.get_available_actions(self.pt)]
self.assertEqual(action_names, ['RT', 'TR', 'WC'])
self.assertEqual(action_names, ['RT', 'WC'])
action_names = [a.name for a in state.get_available_actions(self.pr)]
self.assertEqual(action_names, ['RP', 'RT', 'TR', 'WC'])
self.assertEqual(action_names, ['RP', 'TR', 'RT', 'WC'])
for p in (self.pc, self.pcoo):
action_names = [a.name for a in state.get_available_actions(p)]
self.assertEqual(action_names, ['RP', 'RT', 'TR', 'TC', 'WC', None, 'IC', 'AA'])
self.assertEqual(action_names, ['RP', 'TR', 'RT', 'TC', 'WC', None, 'IC', 'AA'])
def test_state_proofreading(self):
state = StateProofreading(branch=self.b, domain=self.d, language=self.l, person=self.pr)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment