incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [7/7] git commit: [#5837] better test isolation
Date Tue, 19 Feb 2013 18:12:43 GMT
Updated Branches:
  refs/heads/db/5837 [created] b3146efcb


[#5837] better test isolation


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

Branch: refs/heads/db/5837
Commit: b3146efcb72fbd1146bdbcd91640aef6fc3f2d8b
Parents: ead5961
Author: Dave Brondsema <dbrondsema@geek.net>
Authored: Tue Feb 19 17:46:56 2013 +0000
Committer: Dave Brondsema <dbrondsema@geek.net>
Committed: Tue Feb 19 18:02:31 2013 +0000

----------------------------------------------------------------------
 Allura/allura/tests/test_globals.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/b3146efc/Allura/allura/tests/test_globals.py
----------------------------------------------------------------------
diff --git a/Allura/allura/tests/test_globals.py b/Allura/allura/tests/test_globals.py
index ee1c347..9640873 100644
--- a/Allura/allura/tests/test_globals.py
+++ b/Allura/allura/tests/test_globals.py
@@ -20,7 +20,7 @@ from forgeblog import model as BM
 
 
 def setUp():
-    """Method called by nose before running each test"""
+    """Method called by nose once before running the package.  Some functions need it run
again to reset data"""
     setup_basic_test()
     setup_with_tools()
 
@@ -38,6 +38,7 @@ def test_app_globals():
         assert g.url('/foo') == 'http://localhost:80/foo', g.url('/foo')
 
 
+@with_setup(teardown=setUp) # reset everything we changed
 def test_macros():
     file_name = 'neo-icon-set-454545-256x350.png'
     file_path = os.path.join(allura.__path__[0],'nf','allura','images',file_name)


Mime
View raw message