incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject [4/50] git commit: [#5080] fix queries to use a dict, not kwargs that dont work
Date Sun, 04 Nov 2012 19:53:13 GMT
[#5080] fix queries to use a dict, not kwargs that dont work


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/4e20008d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/4e20008d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/4e20008d

Branch: refs/heads/cj/4691
Commit: 4e20008d1f78b5becaeedfc8aa9eeb33106d5ed1
Parents: 709d547
Author: Dave Brondsema <dbrondsema@geek.net>
Authored: Tue Oct 30 19:42:02 2012 +0000
Committer: Dave Brondsema <dbrondsema@geek.net>
Committed: Thu Nov 1 19:51:02 2012 +0000

----------------------------------------------------------------------
 .../forgeshorturl/tests/functional/test.py         |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/4e20008d/ForgeShortUrl/forgeshorturl/tests/functional/test.py
----------------------------------------------------------------------
diff --git a/ForgeShortUrl/forgeshorturl/tests/functional/test.py b/ForgeShortUrl/forgeshorturl/tests/functional/test.py
index a4c36c6..43380ca 100644
--- a/ForgeShortUrl/forgeshorturl/tests/functional/test.py
+++ b/ForgeShortUrl/forgeshorturl/tests/functional/test.py
@@ -79,9 +79,9 @@ class TestRootController(TestController):
     def test_shorturl_remove(self):
         self.app.post('/admin/url/add',
                 params=dict(short_url='g', full_url='http://google.com/'))
-        assert ShortUrl.query.find(app_config_id=c.app.config._id).count() == 1
+        assert ShortUrl.query.find(dict(app_config_id=c.app.config._id)).count() == 1
         self.app.post('/admin/url/remove', params=dict(shorturl='g'))
-        assert ShortUrl.query.find(app_config_id=c.app.config._id).count() == 0
+        assert ShortUrl.query.find(dict(app_config_id=c.app.config._id)).count() == 0
 
     def test_shorturl_permissions(self):
         self.app.post('/admin/url/add',


Mime
View raw message