[PyObjC-svn] r2038 - in trunk/pyobjc/pyobjc-framework-SyncServices: . Exceptions Lib Lib/SyncServices PyObjCTest

[email protected]
Newsgroups gmane.comp.python.pyobjc.cvs
Message-ID <[email protected]>
Author: ronaldoussoren
Date: Thu Jan 22 10:03:03 2009
New Revision: 2038

Log:
Full API test coverage on Leopard

Added:
   trunk/pyobjc/pyobjc-framework-SyncServices/PyObjCTest/test_isyncchange.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-SyncServices/PyObjCTest/test_isyncclient.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-SyncServices/PyObjCTest/test_isynccoredata.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-SyncServices/PyObjCTest/test_isyncfilter.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-SyncServices/PyObjCTest/test_isyncmanager.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-SyncServices/PyObjCTest/test_isyncrecordsnapshot.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-SyncServices/PyObjCTest/test_isyncsession.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-SyncServices/PyObjCTest/test_isyncsessiondriver.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-SyncServices/PyObjCTest/test_isyncuihelper.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-SyncServices/PyObjCTest/test_syncserviceserrors.py   (contents, props changed)
Modified:
   trunk/pyobjc/pyobjc-framework-SyncServices/Exceptions/SyncServices.bridgesupport
   trunk/pyobjc/pyobjc-framework-SyncServices/Lib/   (props changed)
   trunk/pyobjc/pyobjc-framework-SyncServices/Lib/SyncServices/PyObjC.bridgesupport
   trunk/pyobjc/pyobjc-framework-SyncServices/PyObjCTest/test_syncservices.py
   trunk/pyobjc/pyobjc-framework-SyncServices/setup.py

Modified: trunk/pyobjc/pyobjc-framework-SyncServices/Exceptions/SyncServices.bridgesupport
==============================================================================
--- trunk/pyobjc/pyobjc-framework-SyncServices/Exceptions/SyncServices.bridgesupport	(original)
+++ trunk/pyobjc/pyobjc-framework-SyncServices/Exceptions/SyncServices.bridgesupport	Thu Jan 22 10:03:03 2009
@@ -29,6 +29,81 @@
   </class>
   <class name='NSObject'>
     <method selector='applyChange:forEntityName:remappedRecordIdentifier:formattedRecord:error:'>
+      <arg index='2' type_modifier='o' type='^@' type64='^@'/>
+      <arg index='3' type_modifier='o' type='^@' type64='^@'/>
+      <arg index='4' null_accepted='true' type_modifier='o' type='^@' type64='^@'/>
+    </method>
+    <method selector='changedRecordsForEntityName:moreComing:error:'>
+      <arg index='1' type_modifier='o' type='^@' type64='^@'/>
+      <arg index='2' null_accepted='true' type_modifier='o' />
+    </method>
+    <method selector='changesForEntityName:moreComing:error:'>
+      <arg index='1' type_modifier='o' type='^@' type64='^@'/>
+      <arg index='2' null_accepted='true' type_modifier='o' type='^@' type64='^@'/>
+    </method>
+    <method selector='deleteAllRecordsForEntityName:error:'>
+      <arg index='1' null_accepted='true' type_modifier='o' type='^@' type64='^@'/>
+    </method>
+    <method selector='identifiersForRecordsToDeleteForEntityName:moreComing:error:'>
+      <arg index='1' type_modifier='o' type='^@' type64='^@'/>
+      <arg index='2' null_accepted='true' type_modifier='o' type='^@' type64='^@'/>
+    </method>
+    <method selector='recordsForEntityName:moreComing:error:'>
+      <arg index='1' type_modifier='o' type='^@' type64='^@'/>
+      <arg index='2' null_accepted='true' type_modifier='o' type='^@' type64='^@'/>
+    </method>
+    <method selector='sessionDriver:didPullAndReturnError:'>
+      <arg index='1' null_accepted='true' type_modifier='o' type='^@' type64='^@'/>
+    </method>
+    <method selector='sessionDriver:didPushAndReturnError:'>
+      <arg index='1' null_accepted='true' type_modifier='o' type='^@' type64='^@'/>
+    </method>
+    <method selector='sessionDriver:didRegisterClientAndReturnError:'>
+      <arg index='1' null_accepted='true' type_modifier='o' type='^@' type64='^@'/>
+    </method>
+    <method selector='sessionDriver:willFinishSessionAndReturnError:'>
+      <arg index='1' null_accepted='true' type_modifier='o' type='^@' type64='^@'/>
+    </method>
+    <method selector='sessionDriver:willPullAndReturnError:'>
+      <arg index='1' null_accepted='true' type_modifier='o' type='^@' type64='^@'/>
+    </method>
+    <method selector='sessionDriver:willPushAndReturnError:'>
+      <arg index='1' null_accepted='true' type_modifier='o' type='^@' type64='^@'/>
+    </method>
+  </class>
+  <class name='NSPersistentStoreCoordinator'>
+    <method selector='syncWithClient:inBackground:handler:error:'>
+      <arg index='3' null_accepted='true' type_modifier='o' type='^@' type64='^@'/>
+    </method>
+  </class>
+  <class name='ISyncClient'>
+    <method selector='setSyncAlertHandler:selector:'>
+      <arg index='1' sel_of_type='v@:@@' />
+    </method>
+  </class>
+  <class name='ISyncRecordSnapshot'>
+    <method selector='recordIdentifierForReference:isModified:'>
+      <arg index='1' type_modifier='o' type='^B' type64='^B'/>
+    </method>
+  </class>
+  <class name='ISyncSession'>
+    <method class_method='true' selector='beginSessionInBackgroundWithClient:entityNames:target:selector:'>
+      <arg index='3' sel_of_type='v@:@@' />
+    </method>
+    <method class_method='true' selector='beginSessionInBackgroundWithClient:entityNames:target:selector:lastAnchors:'>
+      <arg index='3' sel_of_type='v@:@@' />
+    </method>
+    <method selector='prepareToPullChangesInBackgroundForEntityNames:target:selector:'>
+      <arg index='2' sel_of_type='v@:@@' />
+    </method>
+  </class>
+  <class name='ISyncSessionDriver'>
+    <method selector='startAsynchronousSync:'>
+      <arg index='0' null_accepted='true' type_modifier='o' />
+    </method>
+  </class>
+  <class name='NSObject'>
+    <method selector='applyChange:forEntityName:remappedRecordIdentifier:formattedRecord:error:'>
       <arg index='2' type_modifier='o' />
       <arg index='3' type_modifier='o' />
       <arg index='4' null_accepted='true' type_modifier='o' />

Modified: trunk/pyobjc/pyobjc-framework-SyncServices/Lib/SyncServices/PyObjC.bridgesupport
==============================================================================
--- trunk/pyobjc/pyobjc-framework-SyncServices/Lib/SyncServices/PyObjC.bridgesupport	(original)
+++ trunk/pyobjc/pyobjc-framework-SyncServices/Lib/SyncServices/PyObjC.bridgesupport	Thu Jan 22 10:03:03 2009
@@ -163,25 +163,26 @@
   </class>
   <class name='NSObject'>
     <method selector='applyChange:forEntityName:remappedRecordIdentifier:formattedRecord:error:'>
-      <arg index='2' type_modifier='o' />
-      <arg index='3' type_modifier='o' />
-      <arg index='4' type_modifier='o' />
+      <retval type='i' type64='i' />
+      <arg index='2' type_modifier='o' type='^@'/>
+      <arg index='3' type_modifier='o' type='^@'/>
+      <arg index='4' type_modifier='o' type='^@'/>
     </method>
     <method selector='changedRecordsForEntityName:moreComing:error:'>
       <arg index='1' type='^B' type_modifier='o' />
-      <arg index='2' type_modifier='o' />
+      <arg index='2' type_modifier='o' type='^@'/>
     </method>
     <method selector='changesForEntityName:moreComing:error:'>
       <arg index='1' type='^B' type_modifier='o' />
-      <arg index='2' type_modifier='o' />
+      <arg index='2' type_modifier='o' type='^@'/>
     </method>
     <method selector='deleteAllRecordsForEntityName:error:'>
       <retval type='B' />
-      <arg index='1' type_modifier='o' />
+      <arg index='1' type_modifier='o' type='^@'/>
     </method>
     <method selector='identifiersForRecordsToDeleteForEntityName:moreComing:error:'>
       <arg index='1' type='^B' type_modifier='o' />
-      <arg index='2' type_modifier='o' />
+      <arg index='2' type_modifier='o' type='^@'/>
     </method>
     <method selector='isEqual:'>
       <retval type='B' />

Modified: trunk/pyobjc/pyobjc-framework-SyncServices/PyObjCTest/test_syncservices.py
==============================================================================
--- trunk/pyobjc/pyobjc-framework-SyncServices/PyObjCTest/test_syncservices.py	(original)
+++ trunk/pyobjc/pyobjc-framework-SyncServices/PyObjCTest/test_syncservices.py	Thu Jan 22 10:03:03 2009
@@ -2,34 +2,15 @@
 Some simple tests to check that the framework is properly wrapped.
 '''
 import objc
-import unittest
+from PyObjCTools.TestSupport import *
 import SyncServices
 
-class TestSyncServices (unittest.TestCase):
+class TestSyncServices (TestCase):
     def testClasses(self):
         self.assert_( hasattr(SyncServices, 'ISyncClient') )
         self.assert_( isinstance(SyncServices.ISyncClient, objc.objc_class) )
 
-    def testValues(self):
-        self.assert_( hasattr(SyncServices, 'ISyncChangeTypeModify') )
-        self.assert_( isinstance(SyncServices.ISyncChangeTypeModify, (int, long)) )
-        self.assertEquals(SyncServices.ISyncChangeTypeModify, 2)
-
-    def testVariables(self):
-        self.assert_( hasattr(SyncServices, 'ISyncChangePropertyNameKey') )
-        self.assert_( isinstance(SyncServices.ISyncChangePropertyNameKey, unicode) )
-
-        self.assert_( hasattr(SyncServices, 'ISyncErrorDomain') )
-        self.assert_( isinstance(SyncServices.ISyncErrorDomain, unicode) )
-
-    def testProtocols(self):
-        self.assert_( hasattr(SyncServices, 'protocols') )
-
-        self.assert_( hasattr(SyncServices.protocols, 'ISyncSessionDriverDataSourceOptionalMethods') )
-        self.assert_( isinstance(SyncServices.protocols.ISyncSessionDriverDataSourceOptionalMethods, objc.informal_protocol) )
-
-
 
 if __name__ == "__main__":
-    unittest.main()
+    main()
 

Modified: trunk/pyobjc/pyobjc-framework-SyncServices/setup.py
==============================================================================
--- trunk/pyobjc/pyobjc-framework-SyncServices/setup.py	(original)
+++ trunk/pyobjc/pyobjc-framework-SyncServices/setup.py	Thu Jan 22 10:03:03 2009
@@ -18,7 +18,7 @@
 
 setup(
     name='pyobjc-framework-SyncServices',
-    version='2.0',
+    version='2.2b1',
     description = "Wrappers for the framework SyncServices on Mac OS X",
     long_description = __doc__,
     author='Ronald Oussoren',

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.