[damned-lies] Complement test_state_committing test



commit d6061898ca9fa5338be928fe97a58a93550a20dc
Author: Claude Paroz <claude 2xlibre net>
Date:   Mon Sep 10 13:36:37 2018 +0200

    Complement test_state_committing test

 vertimus/tests/tests.py | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/vertimus/tests/tests.py b/vertimus/tests/tests.py
index 47e2a57d..5971d30d 100644
--- a/vertimus/tests/tests.py
+++ b/vertimus/tests/tests.py
@@ -203,6 +203,8 @@ class VertimusTest(TeamsAndRolesTests):
         # Setup as a writable repo
         self.b.module.vcs_root = 'git gitlab gnome org:GNOME/%s.git' % self.b.module.name
         self.b.module.save()
+        self.b.refresh_from_db()
+        self.assertTrue(state.able_to_commit())
         action_names = [a.name for a in state.get_available_actions(self.pcoo)]
         self.assertEqual(action_names, ['CI', 'WC', 'UNDO', None, 'IC', 'AA'])
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]