diff --git a/tests/test_pagure_flask_ui_plugins.py b/tests/test_pagure_flask_ui_plugins.py index ff3107b..a0aed8a 100644 --- a/tests/test_pagure_flask_ui_plugins.py +++ b/tests/test_pagure_flask_ui_plugins.py @@ -71,7 +71,7 @@ class PagureFlaskPluginstests(tests.Modeltests): sorted(names), [ 'Block non fast-forward pushes', 'Fedmsg', 'IRC', 'Mail', - 'Read the Doc', 'pagure', 'pagure requests', 'pagure tickets' + 'Pagure', 'Pagure requests', 'Pagure tickets', 'Read the Doc', ] ) diff --git a/tests/test_pagure_flask_ui_plugins_pagure_hook.py b/tests/test_pagure_flask_ui_plugins_pagure_hook.py index 24062a8..fd68dfa 100644 --- a/tests/test_pagure_flask_ui_plugins_pagure_hook.py +++ b/tests/test_pagure_flask_ui_plugins_pagure_hook.py @@ -60,12 +60,12 @@ class PagureFlaskPluginPagureHooktests(tests.Modeltests): user = tests.FakeUser(username='pingou') with tests.user_set(pagure.APP, user): - output = self.app.get('/test/settings/pagure') + output = self.app.get('/test/settings/Pagure') self.assertEqual(output.status_code, 200) self.assertIn( '
\n' 'test project #1
', output.data) - self.assertTrue('

pagure settings

' in output.data) + self.assertTrue('

Pagure settings

' in output.data) self.assertTrue( '' in output.data) @@ -75,19 +75,19 @@ class PagureFlaskPluginPagureHooktests(tests.Modeltests): data = {} - output = self.app.post('/test/settings/pagure', data=data) + output = self.app.post('/test/settings/Pagure', data=data) self.assertEqual(output.status_code, 200) self.assertIn( '
\n' 'test project #1
', output.data) - self.assertTrue('

pagure settings

' in output.data) + self.assertTrue('

Pagure settings

' in output.data) self.assertTrue( '' in output.data) data['csrf_token'] = csrf_token # No git found - output = self.app.post('/test/settings/pagure', data=data) + output = self.app.post('/test/settings/Pagure', data=data) self.assertEqual(output.status_code, 404) tests.create_projects_git(tests.HERE) @@ -96,21 +96,21 @@ class PagureFlaskPluginPagureHooktests(tests.Modeltests): # With the git repo output = self.app.post( - '/test/settings/pagure', data=data, follow_redirects=True) + '/test/settings/Pagure', data=data, follow_redirects=True) self.assertEqual(output.status_code, 200) self.assertIn( '
\n

Settings for test

', output.data) self.assertTrue( - '\n Hook pagure inactived' + '\n Hook Pagure inactived' in output.data) - output = self.app.get('/test/settings/pagure') + output = self.app.get('/test/settings/Pagure') self.assertEqual(output.status_code, 200) self.assertIn( '
\n' 'test project #1
', output.data) - self.assertTrue('

pagure settings

' in output.data) + self.assertTrue('

Pagure settings

' in output.data) self.assertTrue( '' in output.data) @@ -125,21 +125,21 @@ class PagureFlaskPluginPagureHooktests(tests.Modeltests): } output = self.app.post( - '/test/settings/pagure', data=data, follow_redirects=True) + '/test/settings/Pagure', data=data, follow_redirects=True) self.assertEqual(output.status_code, 200) self.assertIn( '
\n

Settings for test

', output.data) self.assertTrue( - '\n Hook pagure activated' + '\n Hook Pagure activated' in output.data) - output = self.app.get('/test/settings/pagure') + output = self.app.get('/test/settings/Pagure') self.assertEqual(output.status_code, 200) self.assertIn( '
\n' 'test project #1
', output.data) - self.assertTrue('

pagure settings

' in output.data) + self.assertTrue('

Pagure settings

' in output.data) self.assertTrue( '' in output.data) @@ -150,21 +150,21 @@ class PagureFlaskPluginPagureHooktests(tests.Modeltests): # De-Activate hook data = {'csrf_token': csrf_token} output = self.app.post( - '/test/settings/pagure', data=data, follow_redirects=True) + '/test/settings/Pagure', data=data, follow_redirects=True) self.assertEqual(output.status_code, 200) self.assertIn( '
\n

Settings for test

', output.data) self.assertTrue( - '\n Hook pagure inactived' + '\n Hook Pagure inactived' in output.data) - output = self.app.get('/test/settings/pagure') + output = self.app.get('/test/settings/Pagure') self.assertEqual(output.status_code, 200) self.assertIn( '
\n' 'test project #1
', output.data) - self.assertTrue('

pagure settings

' in output.data) + self.assertTrue('

Pagure settings

' in output.data) self.assertTrue( '' in output.data) diff --git a/tests/test_pagure_flask_ui_plugins_pagure_request_hook.py b/tests/test_pagure_flask_ui_plugins_pagure_request_hook.py index 6e56213..a821bae 100644 --- a/tests/test_pagure_flask_ui_plugins_pagure_request_hook.py +++ b/tests/test_pagure_flask_ui_plugins_pagure_request_hook.py @@ -58,12 +58,12 @@ class PagureFlaskPluginPagureRequestHooktests(tests.Modeltests): user = tests.FakeUser(username='pingou') with tests.user_set(pagure.APP, user): - output = self.app.get('/test/settings/pagure requests') + output = self.app.get('/test/settings/Pagure requests') self.assertEqual(output.status_code, 200) self.assertIn( '
\n' 'test project #1
', output.data) - self.assertTrue('

pagure requests settings

' in output.data) + self.assertTrue('

Pagure requests settings

' in output.data) self.assertTrue( '' in output.data) @@ -73,19 +73,19 @@ class PagureFlaskPluginPagureRequestHooktests(tests.Modeltests): data = {} - output = self.app.post('/test/settings/pagure requests', data=data) + output = self.app.post('/test/settings/Pagure requests', data=data) self.assertEqual(output.status_code, 200) self.assertIn( '
\n' 'test project #1
', output.data) - self.assertTrue('

pagure requests settings

' in output.data) + self.assertTrue('

Pagure requests settings

' in output.data) self.assertTrue( '' in output.data) data['csrf_token'] = csrf_token # No git found - output = self.app.post('/test/settings/pagure requests', data=data) + output = self.app.post('/test/settings/Pagure requests', data=data) self.assertEqual(output.status_code, 404) # Create both the requests repo @@ -94,22 +94,22 @@ class PagureFlaskPluginPagureRequestHooktests(tests.Modeltests): # With the git repo tests.create_projects_git(tests.HERE) output = self.app.post( - '/test/settings/pagure requests', data=data, + '/test/settings/Pagure requests', data=data, follow_redirects=True) self.assertEqual(output.status_code, 200) self.assertIn( '
\n

Settings for test

', output.data) self.assertTrue( - '\n Hook pagure requests inactived' + '\n Hook Pagure requests inactived' in output.data) - output = self.app.get('/test/settings/pagure requests') + output = self.app.get('/test/settings/Pagure requests') self.assertEqual(output.status_code, 200) self.assertIn( '
\n' 'test project #1
', output.data) - self.assertTrue('

pagure requests settings

' in output.data) + self.assertTrue('

Pagure requests settings

' in output.data) self.assertTrue( '' in output.data) @@ -125,22 +125,22 @@ class PagureFlaskPluginPagureRequestHooktests(tests.Modeltests): } output = self.app.post( - '/test/settings/pagure requests', data=data, + '/test/settings/Pagure requests', data=data, follow_redirects=True) self.assertEqual(output.status_code, 200) self.assertIn( '
\n

Settings for test

', output.data) self.assertTrue( - '\n Hook pagure requests activated' + '\n Hook Pagure requests activated' in output.data) - output = self.app.get('/test/settings/pagure requests') + output = self.app.get('/test/settings/Pagure requests') self.assertEqual(output.status_code, 200) self.assertIn( '
\n' 'test project #1
', output.data) - self.assertTrue('

pagure requests settings

' in output.data) + self.assertTrue('

Pagure requests settings

' in output.data) self.assertTrue( '' in output.data) @@ -152,22 +152,22 @@ class PagureFlaskPluginPagureRequestHooktests(tests.Modeltests): # De-Activate hook data = {'csrf_token': csrf_token} output = self.app.post( - '/test/settings/pagure requests', data=data, + '/test/settings/Pagure requests', data=data, follow_redirects=True) self.assertEqual(output.status_code, 200) self.assertIn( '
\n

Settings for test

', output.data) self.assertTrue( - '\n Hook pagure requests inactived' + '\n Hook Pagure requests inactived' in output.data) - output = self.app.get('/test/settings/pagure requests') + output = self.app.get('/test/settings/Pagure requests') self.assertEqual(output.status_code, 200) self.assertIn( '
\n' 'test project #1
', output.data) - self.assertTrue('

pagure requests settings

' in output.data) + self.assertTrue('

Pagure requests settings

' in output.data) self.assertTrue( '' in output.data) @@ -183,7 +183,7 @@ class PagureFlaskPluginPagureRequestHooktests(tests.Modeltests): } shutil.rmtree(os.path.join(tests.HERE, 'requests', 'test.git')) - output = self.app.post('/test/settings/pagure requests', data=data) + output = self.app.post('/test/settings/Pagure requests', data=data) self.assertEqual(output.status_code, 404) diff --git a/tests/test_pagure_flask_ui_plugins_pagure_ticket_hook.py b/tests/test_pagure_flask_ui_plugins_pagure_ticket_hook.py index de4d541..fcd8baa 100644 --- a/tests/test_pagure_flask_ui_plugins_pagure_ticket_hook.py +++ b/tests/test_pagure_flask_ui_plugins_pagure_ticket_hook.py @@ -58,12 +58,12 @@ class PagureFlaskPluginPagureTicketHooktests(tests.Modeltests): user = tests.FakeUser(username='pingou') with tests.user_set(pagure.APP, user): - output = self.app.get('/test/settings/pagure tickets') + output = self.app.get('/test/settings/Pagure tickets') self.assertEqual(output.status_code, 200) self.assertIn( '
\n' 'test project #1
', output.data) - self.assertTrue('

pagure tickets settings

' in output.data) + self.assertTrue('

Pagure tickets settings

' in output.data) self.assertTrue( '' in output.data) @@ -73,19 +73,19 @@ class PagureFlaskPluginPagureTicketHooktests(tests.Modeltests): data = {} - output = self.app.post('/test/settings/pagure tickets', data=data) + output = self.app.post('/test/settings/Pagure tickets', data=data) self.assertEqual(output.status_code, 200) self.assertIn( '
\n' 'test project #1
', output.data) - self.assertTrue('

pagure tickets settings

' in output.data) + self.assertTrue('

Pagure tickets settings

' in output.data) self.assertTrue( '' in output.data) data['csrf_token'] = csrf_token # No git found - output = self.app.post('/test/settings/pagure tickets', data=data) + output = self.app.post('/test/settings/Pagure tickets', data=data) self.assertEqual(output.status_code, 404) # Create both the tickets repo @@ -94,22 +94,22 @@ class PagureFlaskPluginPagureTicketHooktests(tests.Modeltests): # With the git repo tests.create_projects_git(tests.HERE) output = self.app.post( - '/test/settings/pagure tickets', data=data, + '/test/settings/Pagure tickets', data=data, follow_redirects=True) self.assertEqual(output.status_code, 200) self.assertIn( '
\n

Settings for test

', output.data) self.assertTrue( - '\n Hook pagure tickets inactived' + '\n Hook Pagure tickets inactived' in output.data) - output = self.app.get('/test/settings/pagure tickets') + output = self.app.get('/test/settings/Pagure tickets') self.assertEqual(output.status_code, 200) self.assertIn( '
\n' 'test project #1
', output.data) - self.assertTrue('

pagure tickets settings

' in output.data) + self.assertTrue('

Pagure tickets settings

' in output.data) self.assertTrue( '' in output.data) @@ -125,22 +125,22 @@ class PagureFlaskPluginPagureTicketHooktests(tests.Modeltests): } output = self.app.post( - '/test/settings/pagure tickets', data=data, + '/test/settings/Pagure tickets', data=data, follow_redirects=True) self.assertEqual(output.status_code, 200) self.assertIn( '
\n

Settings for test

', output.data) self.assertTrue( - '\n Hook pagure tickets activated' + '\n Hook Pagure tickets activated' in output.data) - output = self.app.get('/test/settings/pagure tickets') + output = self.app.get('/test/settings/Pagure tickets') self.assertEqual(output.status_code, 200) self.assertIn( '
\n' 'test project #1
', output.data) - self.assertTrue('

pagure tickets settings

' in output.data) + self.assertTrue('

Pagure tickets settings

' in output.data) self.assertTrue( '' in output.data) @@ -152,22 +152,22 @@ class PagureFlaskPluginPagureTicketHooktests(tests.Modeltests): # De-Activate hook data = {'csrf_token': csrf_token} output = self.app.post( - '/test/settings/pagure tickets', data=data, + '/test/settings/Pagure tickets', data=data, follow_redirects=True) self.assertEqual(output.status_code, 200) self.assertIn( '
\n

Settings for test

', output.data) self.assertTrue( - '\n Hook pagure tickets inactived' + '\n Hook Pagure tickets inactived' in output.data) - output = self.app.get('/test/settings/pagure tickets') + output = self.app.get('/test/settings/Pagure tickets') self.assertEqual(output.status_code, 200) self.assertIn( '
\n' 'test project #1
', output.data) - self.assertTrue('

pagure tickets settings

' in output.data) + self.assertTrue('

Pagure tickets settings

' in output.data) self.assertTrue( '' in output.data) @@ -183,7 +183,7 @@ class PagureFlaskPluginPagureTicketHooktests(tests.Modeltests): } shutil.rmtree(os.path.join(tests.HERE, 'tickets', 'test.git')) - output = self.app.post('/test/settings/pagure tickets', data=data) + output = self.app.post('/test/settings/Pagure tickets', data=data) self.assertEqual(output.status_code, 404)