allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [18/26] git commit: [#7656] ticket:654 Updated search test
Date Fri, 19 Sep 2014 20:04:32 GMT
[#7656] ticket:654 Updated search test


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

Branch: refs/heads/master
Commit: 38cd390eaef0f5be140fbb7bd668d4e34f750fbd
Parents: fa91db7
Author: Aleksey 'LXj' Alekseyev <gotletter@gmail.com>
Authored: Sun Sep 14 20:17:08 2014 +0300
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Fri Sep 19 19:35:41 2014 +0000

----------------------------------------------------------------------
 Allura/allura/tests/unit/test_solr.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/38cd390e/Allura/allura/tests/unit/test_solr.py
----------------------------------------------------------------------
diff --git a/Allura/allura/tests/unit/test_solr.py b/Allura/allura/tests/unit/test_solr.py
index dfe71c7..3d5317c 100644
--- a/Allura/allura/tests/unit/test_solr.py
+++ b/Allura/allura/tests/unit/test_solr.py
@@ -98,7 +98,7 @@ class TestSolr(unittest.TestCase):
         fq = ['type_s:Project']
         site_admin_search(Project, 'test', 'shortname', rows=25)
         search.assert_called_once_with(
-            'shortname_s:"test"', fq=fq, ignore_errors=False, rows=25)
+            'shortname_s:test', fq=fq, ignore_errors=False, rows=25)
 
         search.reset_mock()
         site_admin_search(Project, 'shortname:test || shortname:test2', '__custom__')
@@ -109,7 +109,7 @@ class TestSolr(unittest.TestCase):
         search.reset_mock()
         site_admin_search(User, 'test-user', 'username', rows=25)
         search.assert_called_once_with(
-            'username_s:"test-user"', fq=fq, ignore_errors=False, rows=25)
+            'username_s:test-user', fq=fq, ignore_errors=False, rows=25)
 
         search.reset_mock()
         site_admin_search(User, 'username:admin1 || username:root', '__custom__')


Mime
View raw message