Commit 0b4875b3 authored by Claude Paroz's avatar Claude Paroz

Testing ability to commit needs the scratch dir

parent d6061898
......@@ -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
......
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