From 225cb86c9168caee5948827a82c983830b1a0113 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Mar 24 2015 12:52:51 +0000 Subject: Drop the remaining mentions of view_log in favor of view_commits --- diff --git a/progit/ui/repo.py b/progit/ui/repo.py index a378066..1ff8473 100644 --- a/progit/ui/repo.py +++ b/progit/ui/repo.py @@ -272,7 +272,7 @@ def view_commits(repo, branchname=None, username=None): break diff_commits.append(commit.oid.hex) - origin = 'view_log' + origin = 'view_commits' return flask.render_template( 'repo_info.html', diff --git a/tests/test_progit_flask_ui_repo.py b/tests/test_progit_flask_ui_repo.py index 33c4bc5..c611ebe 100644 --- a/tests/test_progit_flask_ui_repo.py +++ b/tests/test_progit_flask_ui_repo.py @@ -464,8 +464,8 @@ class ProgitFlaskRepotests(tests.Modeltests): self.assertEqual( output.data.count(''), 10) - def test_view_log(self): - """ Test the view_log endpoint. """ + def test_view_commits(self): + """ Test the view_commits endpoint. """ output = self.app.get('/foo/commits') # No project registered in the DB self.assertEqual(output.status_code, 404)