register a core for the test modules to use
authorSverre Rabbelier <sverre@rabbelier.nl>
Sat, 18 Jul 2009 14:58:12 -0700
changeset 2662 833785d10ecf
parent 2661 03fcd4812eaa
child 2663 d270bd8b7417
register a core for the test modules to use
tests/run.py
--- a/tests/run.py	Wed Jul 15 17:11:17 2009 +0200
+++ b/tests/run.py	Sat Jul 18 14:58:12 2009 -0700
@@ -87,6 +87,13 @@
   import django.test.utils
   django.test.utils.setup_test_environment()
 
+  # register a core for the test modules to use
+  from soc.modules import callback
+  from soc.modules import core
+
+  callback.registerCore(core.Core())
+  callback.getCore().registerModuleCallbacks()
+
   from nose.plugins import cover
   plugin = cover.Coverage()
   nose.main(plugins=[AppEngineDatastoreClearPlugin(), plugin])