##// END OF EJS Templates
compare: cleanup of as_form handling...
compare: cleanup of as_form handling as_form is only used when loaded 'partial' from pullrequest.html. Including it in the 'Detailed compare view' url did thus not do any harm. as_form is never used in pullrequest_show.html or compare_diff.html and it is thus never used together with swap_url ... which is why the wrong 'as_form=None' or 'as_form=False' in urls didn't do any harm.

File last commit:

r1064:113a8db2 beta
r3442:b3680a20 beta
Show More
test_feed.py
22 lines | 774 B | text/x-python | PythonLexer
from rhodecode.tests import *
class TestFeedController(TestController):
def test_rss(self):
self.log_user()
response = self.app.get(url(controller='feed', action='rss',
repo_name=HG_REPO))
assert response.content_type == "application/rss+xml"
assert """<rss version="2.0">""" in response
def test_atom(self):
self.log_user()
response = self.app.get(url(controller='feed', action='atom',
repo_name=HG_REPO))
assert response.content_type == """application/atom+xml"""
assert """<?xml version="1.0" encoding="utf-8"?>""" in response
assert """<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-us">""" in response