diff --git a/tests/test_progit_flask_ui_app.py b/tests/test_progit_flask_ui_app.py index d7b2d28..cdaf071 100644 --- a/tests/test_progit_flask_ui_app.py +++ b/tests/test_progit_flask_ui_app.py @@ -154,7 +154,7 @@ class PagureFlaskApptests(tests.Modeltests): '
Project #1
' in output.data) self.assertTrue( - ' ' + ' ' in output.data) # After projects = pagure.lib.search_projects(self.session) self.assertEqual(len(projects), 1) self.assertTrue(os.path.exists( - os.path.join(tests.HERE, 'project#1.git'))) + os.path.join(tests.HERE, 'project-1.git'))) self.assertTrue(os.path.exists( - os.path.join(tests.HERE, 'tickets', 'project#1.git'))) + os.path.join(tests.HERE, 'tickets', 'project-1.git'))) self.assertTrue(os.path.exists( - os.path.join(tests.HERE, 'docs', 'project#1.git'))) + os.path.join(tests.HERE, 'docs', 'project-1.git'))) self.assertTrue(os.path.exists( - os.path.join(tests.HERE, 'requests', 'project#1.git'))) + os.path.join(tests.HERE, 'requests', 'project-1.git'))) @patch('pagure.ui.app.admin_session_timedout') def test_user_settings(self, ast): diff --git a/tests/test_progit_flask_ui_groups.py b/tests/test_progit_flask_ui_groups.py index c04a1cb..dd749ff 100644 --- a/tests/test_progit_flask_ui_groups.py +++ b/tests/test_progit_flask_ui_groups.py @@ -88,7 +88,7 @@ class PagureFlaskGroupstests(tests.Modeltests): 'This field is required.'), 1) data = { - 'group_name': 'test group', + 'group_name': 'test_group', } # Missing CSRF @@ -100,17 +100,7 @@ class PagureFlaskGroupstests(tests.Modeltests): data['csrf_token'] = csrf_token - # Space in the group - output = self.app.post( - '/group/add', data=data) - self.assertEqual(output.status_code, 200) - self.assertIn('test project #1
' in output.data) self.assertTrue( - ' ' in output.data) + ' ' in output.data) self.assertFalse( 'li class="message">No changes to edit' in output.data) self.assertTrue(