[Checkins] SVN: z3c.testing/trunk/ Get ready for release.

Stephan Richter srichter at cosmos.phy.tufts.edu
Wed Oct 31 12:21:47 EDT 2007


Log message for revision 81273:
  Get ready for release.
  

Changed:
  U   z3c.testing/trunk/CHANGES.txt
  A   z3c.testing/trunk/README.txt
  U   z3c.testing/trunk/buildout.cfg
  U   z3c.testing/trunk/setup.py
  _U  z3c.testing/trunk/src/
  D   z3c.testing/trunk/src/z3c/testing/ftests.py
  U   z3c.testing/trunk/src/z3c/testing/test.zcml
  U   z3c.testing/trunk/src/z3c/testing/tests.py

-=-
Modified: z3c.testing/trunk/CHANGES.txt
===================================================================
--- z3c.testing/trunk/CHANGES.txt	2007-10-31 14:33:42 UTC (rev 81272)
+++ z3c.testing/trunk/CHANGES.txt	2007-10-31 16:21:47 UTC (rev 81273)
@@ -1,10 +1,19 @@
-=======================
-Changes for z3c.testing
-=======================
+=======
+CHANGES
+=======
 
-2007/06/21 0.1.1b1
-==================
+0.2.0 (2007-10-31)
+------------------
 
-- make z3c a namespace
+- Fix pacakge data.
 
-- prevent ConnectionStateError in layer after appsetup is run in layer
+- Move functional tests to tests.
+
+- Remove deprecation warning.
+
+0.1.1b1 (2007-06-21)
+--------------------
+
+- make ``z3c`` a namespace
+
+- prevent ``ConnectionStateError`` in layer after ``appsetup`` is run in layer

Added: z3c.testing/trunk/README.txt
===================================================================
--- z3c.testing/trunk/README.txt	                        (rev 0)
+++ z3c.testing/trunk/README.txt	2007-10-31 16:21:47 UTC (rev 81273)
@@ -0,0 +1,4 @@
+This package provides a collection of high-lvel test setups for unit and
+functional testing. In particular, it provides a testing layer that can use an
+existing, pre-populated database as a starting point, which speeds up the test
+setup phase for large testing data sets.


Property changes on: z3c.testing/trunk/README.txt
___________________________________________________________________
Name: svn:eol-style
   + native

Modified: z3c.testing/trunk/buildout.cfg
===================================================================
--- z3c.testing/trunk/buildout.cfg	2007-10-31 14:33:42 UTC (rev 81272)
+++ z3c.testing/trunk/buildout.cfg	2007-10-31 16:21:47 UTC (rev 81273)
@@ -4,7 +4,6 @@
 
 [test]
 recipe = zc.recipe.testrunner
-defaults = ['--tests-pattern', '^f?tests$']
 eggs = z3c.testing [test]
 
 

Modified: z3c.testing/trunk/setup.py
===================================================================
--- z3c.testing/trunk/setup.py	2007-10-31 14:33:42 UTC (rev 81272)
+++ z3c.testing/trunk/setup.py	2007-10-31 16:21:47 UTC (rev 81273)
@@ -1,21 +1,55 @@
-#!python
+##############################################################################
+#
+# Copyright (c) 2007 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+"""Setup for z3c.viewlet package
+
+$Id$
+"""
+import os
 from setuptools import setup, find_packages
 
+def read(*rnames):
+    return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
+
 setup(name='z3c.testing',
-      version='0.1.1b1',
-      author = "Zope Community",
-      author_email = "zope3-dev at zope.org",
-      description = "Test Helpers for Zope3",
-      license = "ZPL 2.1",
-      keywords = "zope zope3 testing",
-      url='http://svn.zope.org/z3c.testing',
-      zip_safe=False,
+      version = '0.2.0',
+      author='Zope Corporation and Contributors',
+      author_email='zope3-dev at zope.org',
+      description='High-level Testing Support',
+      long_description=(
+          read('README.txt')
+          + '\n\n' +
+          read('CHANGES.txt')
+          ),
+      keywords = "zope3 testing layer zodb",
+      classifiers = [
+          'Development Status :: 5 - Production/Stable',
+          'Environment :: Web Environment',
+          'Intended Audience :: Developers',
+          'License :: OSI Approved :: Zope Public License',
+          'Programming Language :: Python',
+          'Natural Language :: English',
+          'Operating System :: OS Independent',
+          'Topic :: Internet :: WWW/HTTP',
+          'Framework :: Zope3'],
+      url='http://cheeseshop.python.org/pypi/z3c.testing',
+      license='ZPL 2.1',
       packages=find_packages('src'),
-      include_package_data=True,
-      package_dir = {'':'src'},
-      namespace_packages=['z3c',],
+      package_dir = {'': 'src'},
+      namespace_packages=['z3c'],
       extras_require=dict(test=['zope.app.zcmlfiles',
                                 'zope.testbrowser',
+                                'zope.securitypolicy',
                                 'zope.app.securitypolicy',
                                 ]),
       install_requires = ['setuptools',
@@ -31,5 +65,6 @@
                           'zope.interface',
                           'zope.testing',
                           ],
+      include_package_data = True,
+      zip_safe = False,
       )
-


Property changes on: z3c.testing/trunk/src
___________________________________________________________________
Name: svn:ignore
   + z3c.testing.egg-info


Deleted: z3c.testing/trunk/src/z3c/testing/ftests.py
===================================================================
--- z3c.testing/trunk/src/z3c/testing/ftests.py	2007-10-31 14:33:42 UTC (rev 81272)
+++ z3c.testing/trunk/src/z3c/testing/ftests.py	2007-10-31 16:21:47 UTC (rev 81273)
@@ -1,27 +0,0 @@
-import layer
-from zope.app.testing import functional
-import unittest
-
-def appSetUp(app):
-    # just some stupid assertion
-    assert(app.__name__ is None)
-
-
-layer.defineLayer('MyLayer', zcml='test.zcml',
-                  appSetUp=appSetUp, clean=True)
-
-
-def test_suite():
-    suite = unittest.TestSuite()
-    suites = (
-        functional.FunctionalDocFileSuite('BROWSER.txt'),
-        # test setup/teardown by calling it twice
-        functional.FunctionalDocFileSuite('BROWSER.txt'),
-        )
-    for s in suites:
-        s.layer=MyLayer
-        suite.addTest(s)
-    return suite
-
-if __name__ == '__main__':
-    unittest.main(defaultTest='test_suite')

Modified: z3c.testing/trunk/src/z3c/testing/test.zcml
===================================================================
--- z3c.testing/trunk/src/z3c/testing/test.zcml	2007-10-31 14:33:42 UTC (rev 81272)
+++ z3c.testing/trunk/src/z3c/testing/test.zcml	2007-10-31 16:21:47 UTC (rev 81273)
@@ -15,8 +15,8 @@
 
   <include package="zope.app.securitypolicy" />
   <securityPolicy
-      component="zope.app.securitypolicy.zopepolicy.ZopeSecurityPolicy" />
-  
+      component="zope.securitypolicy.zopepolicy.ZopeSecurityPolicy" />
+
   <unauthenticatedPrincipal
     id="zope.anybody"
     title="Unauthenticated User" />

Modified: z3c.testing/trunk/src/z3c/testing/tests.py
===================================================================
--- z3c.testing/trunk/src/z3c/testing/tests.py	2007-10-31 14:33:42 UTC (rev 81272)
+++ z3c.testing/trunk/src/z3c/testing/tests.py	2007-10-31 16:21:47 UTC (rev 81273)
@@ -11,16 +11,25 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-"""
+"""Tests for z3c.testing
+
 $Id$
 """
-
 import unittest
 import zope.interface
+from zope.app.testing import functional
 
 from z3c import testing
+from z3c.testing import layer
 
+def appSetUp(app):
+    # just some stupid assertion
+    assert(app.__name__ is None)
 
+
+layer.defineLayer('MyLayer', zcml='test.zcml',
+                  appSetUp=appSetUp, clean=True)
+
 class ISample(zope.interface.Interface):
     """Sample interface."""
 
@@ -40,9 +49,19 @@
 
 
 def test_suite():
-    return unittest.TestSuite((
-        unittest.makeSuite(TestTestCase),
-        ))
+    suite = unittest.TestSuite()
+    # Unit Tests
+    suite.addTest(unittest.makeSuite(TestTestCase))
+    # Functional Tests
+    suites = (
+        functional.FunctionalDocFileSuite('BROWSER.txt'),
+        # test setup/teardown by calling it twice
+        functional.FunctionalDocFileSuite('BROWSER.txt'),
+        )
+    for s in suites:
+        s.layer=MyLayer
+        suite.addTest(s)
+    return suite
 
 if __name__=='__main__':
     unittest.main(defaultTest='test_suite')



More information about the Checkins mailing list