Test: Drop default confirmation:off and correct tests accordingly

This commit is contained in:
Renato Alves
2015-07-28 17:00:04 +01:00
parent 1ad8aa9aec
commit fe23510c51
24 changed files with 68 additions and 46 deletions

View File

@@ -45,7 +45,7 @@ class TestUndo(TestCase):
self.t('add one')
code, out, err = self.t('_get 1.status')
self.assertEqual(out.strip(), 'pending')
self.t('undo')
self.t('undo', input="y\n")
code, out, err = self.t('_get 1.status')
self.assertEqual(out.strip(), '')
@@ -57,7 +57,7 @@ class TestUndo(TestCase):
self.t('1 done')
code, out, err = self.t('_get 1.status')
self.assertEqual(out.strip(), 'completed')
self.t('undo')
self.t('undo', input="y\n")
code, out, err = self.t('_get 1.status')
self.assertEqual(out.strip(), 'pending')