[damned-lies/fix_tests] Testing ability to commit needs the scratch dir
- From: Claude Paroz <claudep src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [damned-lies/fix_tests] Testing ability to commit needs the scratch dir
- Date: Mon, 10 Sep 2018 11:50:29 +0000 (UTC)
commit 22dd0acedf8d4a9601782c1d504ebcd4056f0901
Author: Claude Paroz <claude 2xlibre net>
Date: Mon Sep 10 13:50:13 2018 +0200
Testing ability to commit needs the scratch dir
vertimus/tests/tests.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/vertimus/tests/tests.py b/vertimus/tests/tests.py
index e6fee1f4..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()
@@ -204,7 +205,6 @@ class VertimusTest(TeamsAndRolesTests):
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()
- state.domain.commit_info(state.branch, state.language)
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'])
@@ -379,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]