Changeset 862:66c6d720a389

Show
Ignore:
Timestamp:
03/10/10 17:12:43 (6 months ago)
Author:
johnbywater
Branch:
default
Message:

Fixed warnings about non-unicode values. Fixed search test (by fixing the licenses package to have the 'Other (Open)' license marked as okd-compliant.

Location:
ckan
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • ckan/lib/search.py

    r857 r862  
    281281        for license in model.Package.get_license_register().values(): 
    282282            if license and license.isopen(): 
    283                 self._open_licenses.append(license.id) 
     283                self._open_licenses.append(unicode(license.id)) 
    284284 
    285285    def _format_results(self): 
  • ckan/tests/test_search.py

    r848 r862  
    305305        pkgs = result['results'] 
    306306        count = result['count'] 
    307         assert count == expected_count, count 
     307        assert count == expected_count, (count, expected_count) 
    308308        for expected_pkg in expected_packages: 
    309309            assert expected_pkg in pkgs, '%s : %s' % (expected_pkg, result) 

0.9.0.3 © 2008-2010 agile42 all rights reserved (this page was served in: 0.573782 sec.)