From cd15accb8e02cad65f9bb0245ec6846c9bb6cc37 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jun 18 2015 09:07:43 +0000 Subject: Adjust the unit-tests on online editting - A branch is required - We now redirect the user to the logs instead of the tree --- diff --git a/tests/test_progit_flask_ui_repo.py b/tests/test_progit_flask_ui_repo.py index e304c4b..688415b 100644 --- a/tests/test_progit_flask_ui_repo.py +++ b/tests/test_progit_flask_ui_repo.py @@ -1709,12 +1709,13 @@ index 0000000..fb7093d # Works data['email'] = 'bar@pingou.com' + data['branch'] = 'master' output = self.app.post( '/test/edit/master/f/sources', data=data, follow_redirects=True) self.assertEqual(output.status_code, 200) self.assertIn( - 'Tree - test - Pagure', output.data) + 'Logs - test - Pagure', output.data) self.assertIn( '
  • Changes committed
  • ', output.data)