[grassyknoll commit] r967 - branches/unhork/grassyknoll/tests/test_backends

0 views
Skip to first unread message

codesite...@google.com

unread,
Dec 29, 2008, 12:30:09 PM12/29/08
to grassykno...@googlegroups.com
Author: jemfinch
Date: Mon Dec 29 09:29:07 2008
New Revision: 967

Added:

branches/unhork/grassyknoll/tests/test_backends/test_PostgresqlCollection.py
Modified:
branches/unhork/grassyknoll/tests/test_backends/test_MysqlCollection.py

Log:
Issue #161: Added Postgres tests, showing failure for non-preservation of
column case, slightly tweaked/updated MySQL tests.


Modified:
branches/unhork/grassyknoll/tests/test_backends/test_MysqlCollection.py
==============================================================================
--- branches/unhork/grassyknoll/tests/test_backends/test_MysqlCollection.py
(original)
+++ branches/unhork/grassyknoll/tests/test_backends/test_MysqlCollection.py
Mon Dec 29 09:29:07 2008
@@ -2,7 +2,6 @@

from grassyknoll.tests import *
from grassyknoll.tests.test_backends.SqlCollectionTests import
makeTestClasses
-from grassyknoll.tests.test_backends.GenericCollectionTests import
TestFilenameFactory

# Set these env variables to run the MySQL tests.
# Eventually I'll figure out how to pass them on the nose command line.
@@ -11,6 +10,6 @@
passwd = os.environ.get('GK_TEST_MYSQL_PASSWD')
db = os.environ.get('GK_TEST_MYSQL_DB')

-if user and passwd and db:
+if user and db:
from grassyknoll.backend.sql.MysqlCollection import MysqlCollection
makeTestClasses(MysqlCollection, globals(), user=user, passwd=passwd,
db=db)

Added:
branches/unhork/grassyknoll/tests/test_backends/test_PostgresqlCollection.py
==============================================================================
--- (empty file)
+++
branches/unhork/grassyknoll/tests/test_backends/test_PostgresqlCollection.py
Mon Dec 29 09:29:07 2008
@@ -0,0 +1,15 @@
+import os
+
+from grassyknoll.tests import *
+from grassyknoll.tests.test_backends.SqlCollectionTests import
makeTestClasses
+
+# Set these env variables to run the MySQL tests.
+# Eventually I'll figure out how to pass them on the nose command line.
+
+user = os.environ.get('GK_TEST_PGSQL_USER')
+passwd = os.environ.get('GK_TEST_PGSQL_PASSWD')
+db = os.environ.get('GK_TEST_PGSQL_DB')
+
+if user and db:
+ from grassyknoll.backend.sql.PostgresqlCollection import
PostgresqlCollection
+ makeTestClasses(PostgresqlCollection, globals(), user=user,
passwd=passwd, db=db)

Reply all
Reply to author
Forward
0 new messages