From 1a80864a0d7ae375d405a03c4501b011ee0b7241 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Nov 02 2017 09:41:39 +0000 Subject: Adjusts the tests now that the forks are in the stats tab Signed-off-by: Pierre-Yves Chibon --- diff --git a/tests/test_pagure_flask_ui_repo.py b/tests/test_pagure_flask_ui_repo.py index 0269d35..6494c03 100644 --- a/tests/test_pagure_flask_ui_repo.py +++ b/tests/test_pagure_flask_ui_repo.py @@ -1290,13 +1290,13 @@ class PagureFlaskRepotests(tests.Modeltests): def test_view_forks(self): """ Test the view_forks endpoint. """ - output = self.app.get('/foo/forks', follow_redirects=True) + output = self.app.get('/foo/stats', follow_redirects=True) self.assertEqual(output.status_code, 404) tests.create_projects(self.session) tests.create_projects_git(os.path.join(self.path, 'repos'), bare=True) - output = self.app.get('/test/forks', follow_redirects=True) + output = self.app.get('/test/stats', follow_redirects=True) self.assertEqual(output.status_code, 200) self.assertTrue('This project has not been forked.' in output.data)