[PyObjC-svn] r2028 - in trunk/pyobjc/pyobjc-framework-Automator: . Exceptions Lib/Automator PyObjCTest
[email protected] Thu, 15 Jan 2009 07:24:50 -0600
Newsgroups
gmane.comp.python.pyobjc.cvs
Message-ID
<[email protected] >
Author: ronaldoussoren
Date: Thu Jan 15 07:24:50 2009
New Revision: 2028
Log:
Complete test coverage on Leopard
Added:
trunk/pyobjc/pyobjc-framework-Automator/Lib/Automator/PyObjC.bridgesupport
trunk/pyobjc/pyobjc-framework-Automator/PyObjCTest/test_amaction.py (contents, props changed)
trunk/pyobjc/pyobjc-framework-Automator/PyObjCTest/test_ambundleaction.py (contents, props changed)
trunk/pyobjc/pyobjc-framework-Automator/PyObjCTest/test_amshellscriptaction.py (contents, props changed)
trunk/pyobjc/pyobjc-framework-Automator/PyObjCTest/test_amworkflow.py (contents, props changed)
trunk/pyobjc/pyobjc-framework-Automator/PyObjCTest/test_amworkflowcontroller.py (contents, props changed)
trunk/pyobjc/pyobjc-framework-Automator/PyObjCTest/test_amworkflowview.py (contents, props changed)
trunk/pyobjc/pyobjc-framework-Automator/PyObjCTest/test_automatorerrors.py (contents, props changed)
Removed:
trunk/pyobjc/pyobjc-framework-Automator/Lib/Automator/PyObjCOverrides.bridgesupport
Modified:
trunk/pyobjc/pyobjc-framework-Automator/Exceptions/Automator.bridgesupport
trunk/pyobjc/pyobjc-framework-Automator/PyObjCTest/test_automator.py
trunk/pyobjc/pyobjc-framework-Automator/setup.py
Modified: trunk/pyobjc/pyobjc-framework-Automator/Exceptions/Automator.bridgesupport
==============================================================================
--- trunk/pyobjc/pyobjc-framework-Automator/Exceptions/Automator.bridgesupport (original)
+++ trunk/pyobjc/pyobjc-framework-Automator/Exceptions/Automator.bridgesupport Thu Jan 15 07:24:50 2009
@@ -77,4 +77,23 @@
<arg index='1' null_accepted='true' type_modifier='o' />
</method>
</class>
+ <class name='AMAction'>
+ <method selector='initWithContentsOfURL:error:'>
+ <arg index='1' null_accepted='true' type_modifier='o' />
+ </method>
+ <method selector='runWithInput:fromAction:error:'>
+ <arg index='2' type_modifier='o' />
+ </method>
+ </class>
+ <class name='AMWorkflow'>
+ <method selector='initWithContentsOfURL:error:'>
+ <arg index='1' null_accepted='true' type_modifier='o' />
+ </method>
+ <method class_method='true' selector='runWorkflowAtURL:withInput:error:'>
+ <arg index='2' null_accepted='true' type_modifier='o' />
+ </method>
+ <method selector='writeToURL:error:'>
+ <arg index='1' null_accepted='true' type_modifier='o' />
+ </method>
+ </class>
</signatures>
Modified: trunk/pyobjc/pyobjc-framework-Automator/PyObjCTest/test_automator.py
==============================================================================
--- trunk/pyobjc/pyobjc-framework-Automator/PyObjCTest/test_automator.py (original)
+++ trunk/pyobjc/pyobjc-framework-Automator/PyObjCTest/test_automator.py Thu Jan 15 07:24:50 2009
@@ -2,10 +2,10 @@
Some simple tests to check that the framework is properly wrapped.
'''
import objc
-import unittest
+from PyObjCTools.TestSupport import *
import Automator
-class TestAutomator (unittest.TestCase):
+class TestAutomator (TestCase):
def testClasses(self):
self.assert_( hasattr(Automator, 'AMAction') )
self.assert_( isinstance(Automator.AMAction, objc.objc_class) )
@@ -18,22 +18,7 @@
self.assert_(hasattr(Automator.protocols, 'AMWorkflowControllerDelegate'))
self.assert_(isinstance(Automator.protocols.AMWorkflowControllerDelegate, objc.informal_protocol))
- def testValues(self):
- # Use this to test for a number of enum and #define values
-
- self.assert_( hasattr(Automator, 'AMActionErrorKey') )
- self.assert_( isinstance(Automator.AMActionErrorKey, (str, unicode)) )
- self.assertEquals(Automator.AMActionErrorKey, "AMActionErrorKey")
-
- self.assert_( hasattr(Automator, 'AMAutomatorErrorDomain') )
- self.assert_( isinstance(Automator.AMAutomatorErrorDomain, (str, unicode)) )
- self.assertEquals(Automator.AMAutomatorErrorDomain, "com.apple.Automator")
-
- self.assert_( hasattr(Automator, 'AMWorkflowNewerVersionError') )
- self.assert_( isinstance(Automator.AMWorkflowNewerVersionError, (int, long)) )
- self.assertEquals(Automator.AMWorkflowNewerVersionError, -100)
-
if __name__ == "__main__":
- unittest.main()
+ main()
Modified: trunk/pyobjc/pyobjc-framework-Automator/setup.py
==============================================================================
--- trunk/pyobjc/pyobjc-framework-Automator/setup.py (original)
+++ trunk/pyobjc/pyobjc-framework-Automator/setup.py Thu Jan 15 07:24:50 2009
@@ -18,7 +18,7 @@
setup(
name='pyobjc-framework-Automator',
- version='2.0',
+ version='2.2b1',
description = "Wrappers for the framework Automator 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