Author: whit
Date: 2007-07-31 15:16:15 -0400 (Tue, 31 Jul 2007)
New Revision: 7890
Modified:
TaggerStore/trunk/taggerstore/tests/__init__.py
Log:
* sort imports
* add reference to graph
Modified: TaggerStore/trunk/taggerstore/tests/__init__.py
===================================================================
--- TaggerStore/trunk/taggerstore/tests/__init__.py 2007-07-31 19:15:24 UTC
(rev 7889)
+++ TaggerStore/trunk/taggerstore/tests/__init__.py 2007-07-31 19:16:15 UTC
(rev 7890)
@@ -5,33 +5,28 @@
from taggerclient.atom import *
from taggerstore import rdfutils
from taggerstore import rdf
-from taggerstore.persist import init_zodb
+from taggerstore.persist import init_zodb, get_graph
from taggerstore.routing import *
from unittest import TestCase
from zodbmiddleware import ZODBMiddleware as zodbmw
import os
-import os
import paste.deploy
import paste.fixture
import paste.script.appinstall
import sys
import transaction as txn
import uuid
+import pkg_resources
here_dir = os.path.dirname(os.path.abspath(__file__))
conf_dir = os.path.dirname(os.path.dirname(here_dir))
sys.path.insert(0, conf_dir)
-import pkg_resources
-
pkg_resources.working_set.add_entry(conf_dir)
-
pkg_resources.require('Paste')
pkg_resources.require('PasteScript')
-
-
test_file = os.path.join(conf_dir, 'test.ini')
conf = paste.deploy.appconfig('config:' + test_file)
conf.update(dict(app_conf=conf.local_conf, global_conf=conf.global_conf))
@@ -47,6 +42,7 @@
self.cxn = db.open()
init_zodb(self.cxn, overwrite=True)
txn.commit()
+ self.graph = get_graph(self.cxn)
self.extra_environ={'zodb.connection':self.cxn}
def __init__(self, *args):
@@ -149,4 +145,4 @@
gr = graph_factory()
return gr.query(q)
-__all__ = ['url_for', 'TestController']
+__all__ = ['url_for', 'TestController', 'basic_entry_vars']
--
Archive:
http://www.openplans.org/projects/opencore/lists/openplans-svn/archive/2007/07/1185909376418
To unsubscribe send an email with subject unsubscribe to [EMAIL PROTECTED]
Please contact [EMAIL PROTECTED] for questions.