summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/adjacencytree/tables.py7
-rw-r--r--test/alltests.py8
2 files changed, 6 insertions, 9 deletions
diff --git a/examples/adjacencytree/tables.py b/examples/adjacencytree/tables.py
index 4c897fa8b..3c144afe6 100644
--- a/examples/adjacencytree/tables.py
+++ b/examples/adjacencytree/tables.py
@@ -1,7 +1,8 @@
from sqlalchemy.schema import *
import sqlalchemy.engine
-engine = sqlalchemy.engine.create_engine('sqlite', ':memory:', {}, echo = True)
+#engine = sqlalchemy.engine.create_engine('sqlite', ':memory:', {}, echo = True)
+engine = sqlalchemy.engine.create_engine('postgres', {'database':'test', 'host':'127.0.0.1', 'user':'scott', 'password':'tiger'}, echo=True)
"""create the treenodes table. This is ia basic adjacency list model table.
One additional column, "root_node_id", references a "root node" row and is used
@@ -25,7 +26,7 @@ print "\n\n\n----------------------------"
print "Creating Tree Table:"
print "----------------------------"
-treedata.create()
-trees.create()
+#treedata.create()
+#trees.create()
diff --git a/test/alltests.py b/test/alltests.py
index cee36d0f0..167bef9ea 100644
--- a/test/alltests.py
+++ b/test/alltests.py
@@ -3,12 +3,8 @@ import testbase
testbase.echo = False
-def suite():
- modules_to_test = ('attributes', 'historyarray', 'pool', 'engines', 'query', 'types', 'mapper', 'objectstore')
- alltests = unittest.TestSuite()
- for module in map(__import__, modules_to_test):
- alltests.addTest(unittest.findTestCases(module))
- return alltests
+
+modules_to_test = ('attributes', 'historyarray', 'pool', 'engines', 'query', 'types', 'mapper', 'objectstore')
if __name__ == '__main__':
testbase.runTests(suite())