From: Mike Bayer Date: Sat, 22 Oct 2005 03:53:35 +0000 (+0000) Subject: (no commit message) X-Git-Tag: rel_0_1_0~484 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d80f493e4ed2b678f6fe43c09f1a445bbd232a7;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git --- diff --git a/examples/adjacencytree/tables.py b/examples/adjacencytree/tables.py index 4c897fa8b2..3c144afe60 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 cee36d0f0f..167bef9eaf 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())