allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [15/38] git commit: [#4019] ticket:515 Revert wrong test edit and make another test more clear
Date Wed, 30 Apr 2014 18:15:47 GMT
[#4019] ticket:515 Revert wrong test edit and make another test more clear


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

Branch: refs/heads/master
Commit: 119b47a96741a11044804ceaf9c0c6e0414979d5
Parents: c063f30
Author: Igor Bondarenko <jetmind2@gmail.com>
Authored: Tue Jan 14 14:40:39 2014 +0200
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Wed Apr 30 15:55:11 2014 +0000

----------------------------------------------------------------------
 Allura/allura/tests/unit/test_solr.py                   | 4 ++--
 ForgeTracker/forgetracker/tests/functional/test_root.py | 1 +
 2 files changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/119b47a9/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 a789ca7..000ed7e 100644
--- a/Allura/allura/tests/unit/test_solr.py
+++ b/Allura/allura/tests/unit/test_solr.py
@@ -205,6 +205,6 @@ class TestSearch_app(unittest.TestCase):
         ))
 
     def test_escape_solr_arg(self):
-        text = 'milestone_s:: wont-fix'
+        text = 'some: weird "text" with symbols'
         escaped_text = escape_solr_arg(text)
-        assert_equal(escaped_text, 'milestone_s\:\: wont\-fix')
+        assert_equal(escaped_text, r'some\: weird \"text\" with symbols')

http://git-wip-us.apache.org/repos/asf/allura/blob/119b47a9/ForgeTracker/forgetracker/tests/functional/test_root.py
----------------------------------------------------------------------
diff --git a/ForgeTracker/forgetracker/tests/functional/test_root.py b/ForgeTracker/forgetracker/tests/functional/test_root.py
index 1586309..3efab34 100644
--- a/ForgeTracker/forgetracker/tests/functional/test_root.py
+++ b/ForgeTracker/forgetracker/tests/functional/test_root.py
@@ -1103,6 +1103,7 @@ class TestFunctionalController(TrackerTestController):
             'milestones-0.due_date': ''
         })
         ticket_view = self.app.get('/p/test/bugs/1/')
+        assert '1.0' not in ticket_view
         assert 'zzzé' in ticket_view
 
     def test_milestone_close(self):


Mime
View raw message