diff --git a/tests/test_pagure_flask_ui_issues.py b/tests/test_pagure_flask_ui_issues.py
index eb87a9c..ef4f6e4 100644
--- a/tests/test_pagure_flask_ui_issues.py
+++ b/tests/test_pagure_flask_ui_issues.py
@@ -130,8 +130,9 @@ class PagureFlaskIssuestests(tests.Modeltests):
'
Issue #1: Test issue - test - Pagure',
output.data)
self.assertIn(
- '', output.data)
+ '',
+ output.data)
# Project w/o issue tracker
repo = pagure.lib.get_project(self.session, 'test')
@@ -188,8 +189,9 @@ class PagureFlaskIssuestests(tests.Modeltests):
'Issue #1: Test issue - test - Pagure',
output.data)
self.assertIn(
- '', output.data)
+ '',
+ output.data)
# Project w/o issue tracker
repo = pagure.lib.get_project(self.session, 'test')
@@ -308,7 +310,8 @@ class PagureFlaskIssuestests(tests.Modeltests):
self.assertEqual(output.status_code, 200)
# Not authentified = No edit
self.assertNotIn(
- '',
+ '',
output.data)
self.assertTrue(
''
@@ -321,7 +324,7 @@ class PagureFlaskIssuestests(tests.Modeltests):
self.assertEqual(output.status_code, 200)
# Not author nor admin = No edit
self.assertNotIn(
- '',
+ '',
output.data)
self.assertFalse(
'Login to comment on this ticket.'
@@ -332,8 +335,9 @@ class PagureFlaskIssuestests(tests.Modeltests):
output = self.app.get('/test/issue/1')
self.assertEqual(output.status_code, 200)
self.assertIn(
- '', output.data)
+ '',
+ output.data)
csrf_token = output.data.split(
'name="csrf_token" type="hidden" value="')[1].split('">')[0]
@@ -374,8 +378,9 @@ class PagureFlaskIssuestests(tests.Modeltests):
'', output.data)
self.assertIn(
- '', output.data)
+ '',
+ output.data)
# Project w/o issue tracker
repo = pagure.lib.get_project(self.session, 'test')
@@ -423,8 +428,9 @@ class PagureFlaskIssuestests(tests.Modeltests):
'Issue #1: Test issue - test - Pagure',
output.data)
self.assertIn(
- '', output.data)
+ '',
+ output.data)
csrf_token = output.data.split(
'name="csrf_token" type="hidden" value="')[1].split('">')[0]
@@ -448,8 +454,9 @@ class PagureFlaskIssuestests(tests.Modeltests):
'Issue #1: Test issue - test - Pagure',
output.data)
self.assertIn(
- '', output.data)
+ '',
+ output.data)
self.assertFalse(
''
in output.data)
@@ -462,8 +469,9 @@ class PagureFlaskIssuestests(tests.Modeltests):
'Issue #1: Test issue - test - Pagure',
output.data)
self.assertIn(
- '', output.data)
+ '',
+ output.data)
self.assertFalse(
''
in output.data)
@@ -476,8 +484,9 @@ class PagureFlaskIssuestests(tests.Modeltests):
'Issue #1: Test issue - test - Pagure',
output.data)
self.assertIn(
- '', output.data)
+ '',
+ output.data)
self.assertIn(
'\n Successfully edited issue #1',
output.data)
@@ -498,8 +507,9 @@ class PagureFlaskIssuestests(tests.Modeltests):
'Issue #1: Test issue - test - Pagure',
output.data)
self.assertIn(
- '', output.data)
+ '',
+ output.data)
self.assertIn(
'\n Comment added',
output.data)
@@ -526,8 +536,9 @@ class PagureFlaskIssuestests(tests.Modeltests):
'Issue #1: Test issue - test - Pagure',
output.data)
self.assertIn(
- '', output.data)
+ '',
+ output.data)
self.assertIn(
'\n Tag added: tag2',
output.data)
@@ -554,8 +565,9 @@ class PagureFlaskIssuestests(tests.Modeltests):
'Issue #1: Test issue - test - Pagure',
output.data)
self.assertIn(
- '', output.data)
+ '',
+ output.data)
self.assertIn(
'\n No user "ralph" found',
output.data)
@@ -579,8 +591,9 @@ class PagureFlaskIssuestests(tests.Modeltests):
'Issue #1: Test issue - test - Pagure',
output.data)
self.assertIn(
- '', output.data)
+ '',
+ output.data)
self.assertIn(
'\n Issue assigned',
output.data)
@@ -627,8 +640,9 @@ class PagureFlaskIssuestests(tests.Modeltests):
'Issue #2: Test issue - test - Pagure',
output.data)
self.assertIn(
- '', output.data)
+ '',
+ output.data)
self.assertIn(
'\n You cannot close a ticket '
'that has ticket depending that are still open.',
@@ -703,8 +717,9 @@ class PagureFlaskIssuestests(tests.Modeltests):
'Issue #1: Test issue - test - Pagure',
output.data)
self.assertIn(
- '', output.data)
+ '',
+ output.data)
csrf_token = output.data.split(
'name="csrf_token" type="hidden" value="')[1].split('">')[0]
@@ -721,8 +736,9 @@ class PagureFlaskIssuestests(tests.Modeltests):
'Issue #1: Test issue - test - Pagure',
output.data)
self.assertIn(
- '', output.data)
+ '',
+ output.data)
self.assertIn(
'\n Comment added',
output.data)
@@ -762,8 +778,9 @@ class PagureFlaskIssuestests(tests.Modeltests):
'Issue #1: Test issue - test - Pagure',
output.data)
self.assertIn(
- '', output.data)
+ '',
+ output.data)
self.assertIn(
'\n Comment removed',
output.data)
@@ -820,8 +837,9 @@ class PagureFlaskIssuestests(tests.Modeltests):
'Issue #1: Test issue - test - Pagure',
output.data)
self.assertIn(
- '', output.data)
+ '',
+ output.data)
csrf_token = output.data.split(
'name="csrf_token" type="hidden" value="')[1].split('">')[0]
@@ -838,8 +856,9 @@ class PagureFlaskIssuestests(tests.Modeltests):
'Issue #1: Test issue - test - Pagure',
output.data)
self.assertIn(
- '', output.data)
+ '',
+ output.data)
self.assertIn(
'\n Dependency added',
output.data)
@@ -856,10 +875,12 @@ class PagureFlaskIssuestests(tests.Modeltests):
'Issue #1: Test issue - test - Pagure',
output.data)
self.assertIn(
- '', output.data)
+ '',
+ output.data)
self.assertNotIn(
- '\n Dependency added', output.data)
+ '\n Dependency added',
+ output.data)
repo = pagure.lib.get_project(self.session, 'test')
issue = pagure.lib.search_issues(self.session, repo, issueid=1)
@@ -909,8 +930,9 @@ class PagureFlaskIssuestests(tests.Modeltests):
'Issue #1: Test issue - test - Pagure',
output.data)
self.assertIn(
- '', output.data)
+ '',
+ output.data)
csrf_token = output.data.split(
'name="csrf_token" type="hidden" value="')[1].split('">')[0]
@@ -927,8 +949,9 @@ class PagureFlaskIssuestests(tests.Modeltests):
'Issue #1: Test issue - test - Pagure',
output.data)
self.assertIn(
- '', output.data)
+ '',
+ output.data)
self.assertIn(
'\n Dependency added',
output.data)
@@ -945,8 +968,9 @@ class PagureFlaskIssuestests(tests.Modeltests):
'Issue #1: Test issue - test - Pagure',
output.data)
self.assertIn(
- '', output.data)
+ '',
+ output.data)
self.assertNotIn(
'\n Dependency added',
output.data)
@@ -989,8 +1013,9 @@ class PagureFlaskIssuestests(tests.Modeltests):
'Issue #1: Test issue - test - Pagure',
output.data)
self.assertIn(
- '', output.data)
+ '',
+ output.data)
csrf_token = output.data.split(
'name="csrf_token" type="hidden" value="')[1].split('">')[0]
@@ -1464,7 +1489,8 @@ class PagureFlaskIssuestests(tests.Modeltests):
self.assertIn(
'Issues - test - Pagure', output.data)
self.assertIn(
- '\n Issue deleted', output.data)
+ '\n Issue deleted',
+ output.data)
# Project w/o issue tracker
repo = pagure.lib.get_project(self.session, 'test')
@@ -1508,8 +1534,9 @@ class PagureFlaskIssuestests(tests.Modeltests):
'Issue #1: Test issue - test - Pagure',
output.data)
self.assertIn(
- '', output.data)
+ '',
+ output.data)
csrf_token = output.data.split(
'name="csrf_token" type="hidden" value="')[1].split('">')[0]
@@ -1526,8 +1553,9 @@ class PagureFlaskIssuestests(tests.Modeltests):
'Issue #1: Test issue - test - Pagure',
output.data)
self.assertIn(
- '', output.data)
+ '',
+ output.data)
self.assertIn(
'\n Comment added',
output.data)
@@ -1538,7 +1566,9 @@ class PagureFlaskIssuestests(tests.Modeltests):
repo = pagure.lib.get_project(self.session, 'test')
issue = pagure.lib.search_issues(self.session, repo, issueid=1)
self.assertEqual(len(issue.comments), 1)
- self.assertEqual(issue.comments[0].comment, 'Woohoo a second comment !')
+ self.assertEqual(
+ issue.comments[0].comment,
+ 'Woohoo a second comment !')
data = {
'csrf_token': csrf_token,
@@ -1569,8 +1599,9 @@ class PagureFlaskIssuestests(tests.Modeltests):
'Issue #1: Test issue - test - Pagure',
output.data)
self.assertIn(
- '', output.data)
+ '',
+ output.data)
self.assertIn(
'\n Comment updated',
output.data)
@@ -1606,8 +1637,9 @@ class PagureFlaskIssuestests(tests.Modeltests):
'Issue #1: Test issue - test - Pagure',
output.data)
self.assertIn(
- '', output.data)
+ '',
+ output.data)
self.assertIn(
'\n Comment updated',
output.data)