From a219ad416a7a7e7f38978c0573888a0aba9b90f9 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jul 11 2016 10:38:45 +0000 Subject: Adjust the test to create the README file while at it --- diff --git a/tests/test_pagure_flask_ui_app.py b/tests/test_pagure_flask_ui_app.py index a443f2a..1b085f6 100644 --- a/tests/test_pagure_flask_ui_app.py +++ b/tests/test_pagure_flask_ui_app.py @@ -296,15 +296,18 @@ class PagureFlaskApptests(tests.Modeltests): 'description': 'Prõjéctö #1', 'name': 'project-1', 'csrf_token': csrf_token, + 'create_readme': True, } output = self.app.post('/new/', data=data, follow_redirects=True) - self.assertEqual(output.status_code, 200)1 + self.assertEqual(output.status_code, 200) self.assertIn( '
\nPrõjéctö #1
', output.data if six.PY2 else output.data.decode('utf-8')) - self.assertIn(b'

This repo is brand new!

', output.data) self.assertIn( - b'Overview - project-1 - Pagure', output.data) + '''
+

project-1

+

Prõjéctö #1

+
''', output.data if six.PY2 else output.data.decode('utf-8')) # After projects = pagure.lib.search_projects(self.session)