diff --git a/tests/test_progit_flask_ui_repo.py b/tests/test_progit_flask_ui_repo.py index c0e8e5a..b34cb7b 100644 --- a/tests/test_progit_flask_ui_repo.py +++ b/tests/test_progit_flask_ui_repo.py @@ -301,6 +301,37 @@ class PagureFlaskRepotests(tests.Modeltests): '' in output.data) + + data = { + 'csrf_token': csrf_token, + 'project_documentation': 'y', + 'issue_tracker': 'y', + } + output = self.app.post( + '/test/settings', data=data, follow_redirects=True) + self.assertEqual(output.status_code, 200) + self.assertTrue('
' in output.data) + self.assertTrue('

test project #1

' in output.data) + self.assertTrue( + 'Overview - test - Pagure' in output.data) + self.assertTrue( + '
  • Edited successfully settings of ' + 'repo: test
  • ' in output.data) + + # Both checkbox are again checked + output = self.app.get('/test/settings', follow_redirects=True) + self.assertEqual(output.status_code, 200) + self.assertTrue('
    ' in output.data) + self.assertTrue('

    Settings

    ' in output.data) + self.assertTrue( + '' in output.data) + self.assertTrue( + '' in output.data) + self.assertTrue( + '' in output.data) + def test_view_forks(self): """ Test the view_forks endpoint. """