incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject [7/7] git commit: [#5837] better test isolation
Date Tue, 19 Feb 2013 23:29:19 GMT
Updated Branches:
  refs/heads/master 8866f9e3d -> f9f80242b


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

Branch: refs/heads/master
Commit: f9f80242bf298305fb21cce379f57220c580fec4
Parents: 40bbb39
Author: Dave Brondsema <dbrondsema@geek.net>
Authored: Tue Feb 19 17:46:56 2013 +0000
Committer: Cory Johns <johnsca@geek.net>
Committed: Tue Feb 19 23:27:30 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/f9f80242/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