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

0 views
Skip to first unread message

codesite...@google.com

unread,
Dec 29, 2008, 11:31:55 AM12/29/08
to grassykno...@googlegroups.com
Author: jemfinch
Date: Mon Dec 29 08:27:06 2008
New Revision: 962

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

Log:
Issue #161: Reordered imports so there are no failures if MySQL
configuration isn't given.


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:06 2008
@@ -2,13 +2,12 @@
from grassyknoll.tests.test_backends.SqlCollectionTests import
makeTestClasses
from grassyknoll.tests.test_backends.GenericCollectionTests import
TestFilenameFactory

-from grassyknoll.backend.sql.MysqlCollection import MysqlCollection
-
# Update these to run the MySQL tests. Eventually I'll figure out how to
pass them on the nose
# command line.
-user = ''
-passwd = ''
+user = 'root'
+passwd = 'root'
db = ''

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

Reply all
Reply to author
Forward
0 new messages