Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Nov 4, 2012
1 parent 1da92c6 commit c2f6fa2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ckan/tests/functional/test_package.py
Expand Up @@ -24,6 +24,7 @@
from ckan.rating import set_rating
from ckan.lib.search.common import SolrSettings


class MockPackageControllerPlugin(SingletonPlugin):
implements(IPackageController)

Expand Down Expand Up @@ -68,6 +69,7 @@ def before_view(self, search_params):

existing_extra_html = ('<label class="field_opt" for="Package-%(package_id)s-extras-%(key)s">%(capitalized_key)s</label>', '<input id="Package-%(package_id)s-extras-%(key)s" name="Package-%(package_id)s-extras-%(key)s" size="20" type="text" value="%(value)s">')


class TestPackageBase(FunctionalTestCase):
key1 = u'key1 Less-than: < Umlaut: \xfc'
value1 = u'value1 Less-than: < Umlaut: \xfc'
Expand Down Expand Up @@ -1533,4 +1535,3 @@ def test_package_autocomplete(self):
expected = ['A Wonderful Story (warandpeace)|warandpeace','annakarenina|annakarenina']
received = sorted(res.body.split('\n'))
assert expected == received

0 comments on commit c2f6fa2

Please sign in to comment.