# HG changeset patch # User Mads Kiilerich # Date 2020-05-10 20:50:46 # Node ID 16389bb32f3932badb333112fe7022d35ab51d21 # Parent 79ce82bdb06eebcee636e50229707ce75b0c2227 tests: coverage of Git repo feeds Coverage of the case reported in Issue #372. diff --git a/kallithea/tests/functional/test_feed.py b/kallithea/tests/functional/test_feed.py --- a/kallithea/tests/functional/test_feed.py +++ b/kallithea/tests/functional/test_feed.py @@ -3,18 +3,26 @@ from kallithea.tests import base class TestFeedController(base.TestController): - def test_rss(self): + @base.parametrize('repo', [ + base.HG_REPO, + base.GIT_REPO, + ]) + def test_rss(self, repo): self.log_user() response = self.app.get(base.url(controller='feed', action='rss', - repo_name=base.HG_REPO)) + repo_name=repo)) assert response.content_type == "application/rss+xml" assert """""" in response - def test_atom(self): + @base.parametrize('repo', [ + base.HG_REPO, + base.GIT_REPO, + ]) + def test_atom(self, repo): self.log_user() response = self.app.get(base.url(controller='feed', action='atom', - repo_name=base.HG_REPO)) + repo_name=repo)) assert response.content_type == """application/atom+xml""" assert """""" in response