damned-lies r1361 - in trunk: . vertimus vertimus/tests
- From: stephaner svn gnome org
- To: svn-commits-list gnome org
- Subject: damned-lies r1361 - in trunk: . vertimus vertimus/tests
- Date: Sun, 18 Jan 2009 17:13:30 +0000 (UTC)
Author: stephaner
Date: Sun Jan 18 17:13:30 2009
New Revision: 1361
URL: http://svn.gnome.org/viewvc/damned-lies?rev=1361&view=rev
Log:
2009-01-18 StÃphane Raimbault <stephane raimbault gmail com>
* vertimus/models.py: Add the action 'Reserve for proofreading'
to the Proofread state.
* vertimus/tests/__init__.py: Updated unit test.
Modified:
trunk/ChangeLog
trunk/vertimus/models.py
trunk/vertimus/tests/__init__.py
Modified: trunk/vertimus/models.py
==============================================================================
--- trunk/vertimus/models.py (original)
+++ trunk/vertimus/models.py Sun Jan 18 17:13:30 2009
@@ -191,7 +191,7 @@
def get_available_actions(self, person):
if person.is_reviewer(self.language.team):
- action_names = ['TC', 'TR']
+ action_names = ['TC', 'RP', 'TR']
else:
action_names = []
Modified: trunk/vertimus/tests/__init__.py
==============================================================================
--- trunk/vertimus/tests/__init__.py (original)
+++ trunk/vertimus/tests/__init__.py Sun Jan 18 17:13:30 2009
@@ -185,7 +185,7 @@
for p in (self.pr, self.pc, self.pcoo):
action_names = [a.name for a in state.get_available_actions(p)]
- self.assertEqual(action_names, ['TC', 'TR', 'WC'])
+ self.assertEqual(action_names, ['TC', 'RP', 'TR', 'WC'])
def test_state_to_review(self):
sdb = StateDb(branch=self.b, domain=self.d, language=self.l, person=self.pt)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]