allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tvansteenbu...@apache.org
Subject [07/50] git commit: [#5332] Fix test
Date Wed, 08 May 2013 15:35:04 GMT
[#5332] Fix test

Signed-off-by: Tim Van Steenburgh <tvansteenburgh@gmail.com>


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

Branch: refs/heads/tv/docs
Commit: 2c50ad0c57a3555d5c81bb3fdfc65633b8789aca
Parents: f8475cd
Author: Tim Van Steenburgh <tvansteenburgh@gmail.com>
Authored: Mon Apr 29 15:27:11 2013 +0000
Committer: Tim Van Steenburgh <tvansteenburgh@gmail.com>
Committed: Mon Apr 29 15:27:11 2013 +0000

----------------------------------------------------------------------
 Allura/allura/tests/model/test_project.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/2c50ad0c/Allura/allura/tests/model/test_project.py
----------------------------------------------------------------------
diff --git a/Allura/allura/tests/model/test_project.py b/Allura/allura/tests/model/test_project.py
index 0a218b1..bbff251 100644
--- a/Allura/allura/tests/model/test_project.py
+++ b/Allura/allura/tests/model/test_project.py
@@ -91,7 +91,10 @@ def test_project():
     c.app.config.breadcrumbs()
 
 def test_subproject():
-    sp = c.project.new_subproject('test-project-nose')
+    with td.raises(ToolError):
+        # name exceeds 15 chars
+        sp = c.project.new_subproject('test-project-nose')
+    sp = c.project.new_subproject('test-proj-nose')
     spp = sp.new_subproject('spp')
     ThreadLocalORMSession.flush_all()
     sp.delete()


Mime
View raw message