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

0 views
Skip to first unread message

codesite...@google.com

unread,
Dec 29, 2008, 11:27:53 AM12/29/08
to grassykno...@googlegroups.com
Author: jemfinch
Date: Mon Dec 29 08:27:17 2008
New Revision: 963

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

Log:
Issue #161: Converted MySQL tests to use environment variables for login
configuration.


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 08:27:17 2008
@@ -1,12 +1,15 @@
+import os
+
from grassyknoll.tests import *
from grassyknoll.tests.test_backends.SqlCollectionTests import
makeTestClasses
from grassyknoll.tests.test_backends.GenericCollectionTests import
TestFilenameFactory

-# Update these to run the MySQL tests. Eventually I'll figure out how to
pass them on the nose
-# command line.
-user = 'root'
-passwd = 'root'
-db = ''
+# 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_MYSQL_USER')
+passwd = os.environ.get('GK_TEST_MYSQL_PASSWD')
+db = os.environ.get('GK_TEST_MYSQL_DB')

if user and passwd and db:
from grassyknoll.backend.sql.MysqlCollection import MysqlCollection

Reply all
Reply to author
Forward
0 new messages