You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by je...@apache.org on 2014/09/18 09:30:09 UTC

[34/43] git commit: [#7656] ticket:654 Updated search test

[#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/72c54da3
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/72c54da3
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/72c54da3

Branch: refs/heads/je/42cc_7656
Commit: 72c54da386d5a9339c257e4e2aee6fdae3e64592
Parents: 209e68e
Author: Aleksey 'LXj' Alekseyev <go...@gmail.com>
Authored: Sun Sep 14 20:17:08 2014 +0300
Committer: Igor Bondarenko <je...@gmail.com>
Committed: Thu Sep 18 09:33:58 2014 +0300

----------------------------------------------------------------------
 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/72c54da3/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__')