Mercurial > kallithea
changeset 4269:dfdf6b1d38e9
tests: basic test coverage of changeset - there was no coverage for ranges at all
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Fri, 18 Jul 2014 17:01:37 +0200 |
parents | 5376baf8cd6b |
children | 22da5c75e660 |
files | kallithea/tests/functional/test_changeset.py |
diffstat | 1 files changed, 16 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/tests/functional/test_changeset.py Fri Jul 18 17:01:37 2014 +0200 +++ b/kallithea/tests/functional/test_changeset.py Fri Jul 18 17:01:37 2014 +0200 @@ -4,5 +4,20 @@ def test_index(self): response = self.app.get(url(controller='changeset', action='index', - repo_name=HG_REPO,revision='tip')) + repo_name=HG_REPO, revision='tip')) # Test response... + + def test_changeset_range(self): + #print self.app.get(url(controller='changelog', action='index', repo_name=HG_REPO)) + + response = self.app.get(url(controller='changeset', action='index', + repo_name=HG_REPO, revision='a53d9201d4bc278910d416d94941b7ea007ecd52...96507bd11ecc815ebc6270fdf6db110928c09c1e')) + + response = self.app.get(url(controller='changeset', action='changeset_raw', + repo_name=HG_REPO, revision='a53d9201d4bc278910d416d94941b7ea007ecd52')) + + response = self.app.get(url(controller='changeset', action='changeset_patch', + repo_name=HG_REPO, revision='a53d9201d4bc278910d416d94941b7ea007ecd52')) + + response = self.app.get(url(controller='changeset', action='changeset_download', + repo_name=HG_REPO, revision='a53d9201d4bc278910d416d94941b7ea007ecd52'))