allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [12/50] git commit: [#4602] ticket:541 Fix failing tests due to changes in link_text()
Date Tue, 25 Mar 2014 14:27:10 GMT
[#4602] ticket:541 Fix failing tests due to changes in link_text()


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

Branch: refs/heads/db/5995
Commit: effeaa09d64596c7ce9bccab69b01ef89bdc5857
Parents: 40aa433
Author: Igor Bondarenko <jetmind2@gmail.com>
Authored: Fri Feb 21 15:17:35 2014 +0200
Committer: Tim Van Steenburgh <tvansteenburgh@gmail.com>
Committed: Tue Mar 11 14:17:19 2014 +0000

----------------------------------------------------------------------
 Allura/allura/tests/model/test_artifact.py   | 2 +-
 Allura/allura/tests/model/test_discussion.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/effeaa09/Allura/allura/tests/model/test_artifact.py
----------------------------------------------------------------------
diff --git a/Allura/allura/tests/model/test_artifact.py b/Allura/allura/tests/model/test_artifact.py
index d00d935..031b105 100644
--- a/Allura/allura/tests/model/test_artifact.py
+++ b/Allura/allura/tests/model/test_artifact.py
@@ -110,7 +110,7 @@ def test_artifact():
     assert idx['id'] == pg.index_id()
     assert 'text' in idx
     assert 'TestPage' in pg.shorthand_id()
-    assert pg.link_text() == pg.shorthand_id()
+    assert pg.link_text() == '%s: %s' % (pg.type_s, pg.shorthand_id())
 
 
 @with_setup(setUp, tearDown)

http://git-wip-us.apache.org/repos/asf/allura/blob/effeaa09/Allura/allura/tests/model/test_discussion.py
----------------------------------------------------------------------
diff --git a/Allura/allura/tests/model/test_discussion.py b/Allura/allura/tests/model/test_discussion.py
index f814fad..6f6d86e 100644
--- a/Allura/allura/tests/model/test_discussion.py
+++ b/Allura/allura/tests/model/test_discussion.py
@@ -155,7 +155,7 @@ def test_post_methods():
     assert_equals(p.attachments, [])
     assert 'wiki/_discuss' in p.url()
     assert p.reply_subject() == 'Re: Test Thread'
-    assert p.link_text() == p.subject
+    assert p.link_text() == '%s: %s' % (p.type_s, p.subject)
 
     ss = p.history().first()
     assert 'version' in h.get_first(ss.index(), 'title')


Mime
View raw message