[ckan-changes] commit/ckanclient: dread: [tests]: Forgot to finish all_fields test. Here it is working now.

Bitbucket commits-noreply at bitbucket.org
Tue Aug 9 17:03:52 UTC 2011


1 new changeset in ckanclient:

http://bitbucket.org/okfn/ckanclient/changeset/2606f2135b30/
changeset:   2606f2135b30
user:        dread
date:        2011-08-09 19:03:15
summary:     [tests]: Forgot to finish all_fields test. Here it is working now.
affected #:  1 file (9 bytes)

--- a/ckanclient/tests/test_ckanclient.py	Tue Aug 09 15:53:59 2011 +0100
+++ b/ckanclient/tests/test_ckanclient.py	Tue Aug 09 18:03:15 2011 +0100
@@ -268,8 +268,8 @@
                                                           'all_fields': True})
         status = self.c.last_status
         assert status == 200, status
-        assert_equal(list(res['results']), [u'annakarenina'])
         assert_equal(res['count'], 1)
+        assert_equal(list(res['results'])[0]['name'], u'annakarenina')
 
     def test_11_package_relationship_post(self):
         res = self.c.package_relationship_register_get('annakarenina')

Repository URL: https://bitbucket.org/okfn/ckanclient/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.




More information about the ckan-changes mailing list