[damned-lies] Testing ability to commit needs the scratch dir



commit 0b4875b388317db4144785092353cdfc871e9eb4
Author: Claude Paroz <claude 2xlibre net>
Date:   Mon Sep 10 14:29:27 2018 +0200

    Testing ability to commit needs the scratch dir

 vertimus/tests/tests.py | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/vertimus/tests/tests.py b/vertimus/tests/tests.py
index 5971d30d..9f8cfbb4 100644
--- a/vertimus/tests/tests.py
+++ b/vertimus/tests/tests.py
@@ -182,6 +182,7 @@ class VertimusTest(TeamsAndRolesTests):
             action_names = [a.name for a in state.get_available_actions(p)]
             self.assertEqual(action_names, ['RC', 'TR', 'UNDO', 'WC', None, 'IC', 'AA'])
 
+    @test_scratchdir
     def test_state_committing(self):
         state = StateProofreading(branch=self.b, domain=self.d, language=self.l, person=self.pr)
         state.save()
@@ -378,6 +379,7 @@ class VertimusTest(TeamsAndRolesTests):
         action.apply_on(state, {'send_to_ml': action.send_mail_to_ml, 'comment': "This work is mine!"})
         self.assertIsInstance(state, StateCommitting)
 
+    @test_scratchdir
     def test_action_ci(self):
         # Setup as a writable repo
         self.b.module.vcs_root = 'git gitlab gnome org:GNOME/%s.git' % self.b.module.name


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