[Checkins] SVN: Sandbox/adamg/ocql/branches/dbprovider/src/ocql/tests/test_zope.py changes to retrieve DB info to test_zope by calling methods in metadata

Charith Paranaliyanage paranaliyanage at gmail.com
Fri Jun 20 05:08:26 EDT 2008


Log message for revision 87589:
  changes to retrieve DB info to test_zope by calling methods in metadata

Changed:
  U   Sandbox/adamg/ocql/branches/dbprovider/src/ocql/tests/test_zope.py

-=-
Modified: Sandbox/adamg/ocql/branches/dbprovider/src/ocql/tests/test_zope.py
===================================================================
--- Sandbox/adamg/ocql/branches/dbprovider/src/ocql/tests/test_zope.py	2008-06-20 08:42:49 UTC (rev 87588)
+++ Sandbox/adamg/ocql/branches/dbprovider/src/ocql/tests/test_zope.py	2008-06-20 09:08:26 UTC (rev 87589)
@@ -65,11 +65,15 @@
 
        
     def test_gsoc(self):
-        
-        print "only a single query for testing"
         metadata = Metadata()
         symbols = SymbolContainer()
-           
+
+        print "retrieve gsoc objects"
+        import pydevd;pydevd.settrace()
+        student_list = metadata.db['all_students'] 
+        a = set(student_list)
+        
+        print "only a single query for testing"           
         query = "[c in IStudent | c]"
         qo = Query(
                 metadata, symbols,
@@ -82,7 +86,7 @@
                 ], Identifier(metadata,symbols,'c'))
         
         #is not sure how to get s1, s2 and s3 here
-        self.doit(query, qo, set([s1,s2,s3]))
+        self.doit(query, qo, set(student_list))
         
         
         



More information about the Checkins mailing list