{ "info": { "author": "Stefan H. Holek", "author_email": "stefan@epy.co.at", "bugtrack_url": null, "classifiers": [ "Framework :: Zope2", "Programming Language :: Python" ], "description": "===========\nCMFTestCase\n===========\n-------------------------------------\nIntegration testing framework for CMF\n-------------------------------------\n\nIntroduction\n============\n\nCMFTestCase is a thin layer on top of the ZopeTestCase package. It has\nbeen developed to simplify testing of CMF-based applications and products.\n\nThe CMFTestCase package provides\n--------------------------------\n\n- The function ``installProduct`` to install a Zope product into the\n test environment.\n\n- The function ``installPackage`` to install a Python package\n registered via five:registerPackage into the test environment.\n Requires Zope 2.10.4 or higher.\n\n- The function ``setupCMFSite`` to create a CMF portal in the test db.\n\n Note: ``setupCMFSite`` accepts an optional ``products`` argument, which\n allows you to specify a list of products that will be added to the\n portal. Product installation is performed via the canonical\n ``Extensions.Install.install`` function. Since 0.8.2 you can also pass\n an ``extension_profiles`` argument to import GS extension profiles.\n\n- The class ``CMFTestCase`` of which to derive your test cases.\n\n- The class ``FunctionalTestCase`` of which to derive your test cases\n for functional unit testing.\n\n- The classes ``Sandboxed`` and ``Functional`` to mix-in with your own\n test cases.\n\n- The constants ``portal_name``, ``portal_owner``, ``default_products``,\n ``default_base_profile``, ``default_extension_profiles``,\n ``default_user``, and ``default_password``.\n\n- The constant ``CMF15`` which evaluates to true for CMF versions\n >= 1.5.\n\n- The constant ``CMF16`` which evaluates to true for CMF versions\n >= 1.6.\n\n- The constant ``CMF20`` which evaluates to true for CMF versions\n >= 2.0.\n\n- The constant ``CMF21`` which evaluates to true for CMF versions\n >= 2.1.\n\n- The constant ``CMF22`` which evaluates to true for CMF versions\n >= 2.2.\n\n- The module ``utils`` which contains all utility functions from the\n ZopeTestCase package.\n\nExample CMFTestCase\n-------------------\n::\n\n from Products.CMFTestCase import CMFTestCase\n\n CMFTestCase.installProduct('SomeProduct')\n CMFTestCase.setupCMFSite(products=('SomeProduct',))\n\n class TestSomething(CMFTestCase.CMFTestCase):\n\n def afterSetup(self):\n self.folder.invokeFactory('Document', 'doc')\n\n def testEditDocument(self):\n self.folder.doc.edit(text_format='plain', text='data')\n self.assertEqual(self.folder.doc.EditableBody(), 'data')\n\nExample CMFTestCase setup with GenericSetup\n-------------------------------------------\n::\n\n from Products.CMFTestCase import CMFTestCase\n\n CMFTestCase.installProduct('SomeProduct')\n CMFTestCase.setupCMFSite(extension_profiles=('SomeProduct:default',))\n\nPlease see the docs of the ZopeTestCase package, especially those\nof the PortalTestCase class.\n\nLook at the example tests in this directory to get an idea of how\nto use the CMFTestCase package.\n\nCopy ``testSkeleton.py`` to start your own tests.\n\n\nChangelog\n=========\n\n0.9.12 (2012-07-02)\n-------------------\n\n- Use getSite from zope.component.\n [hannosch]\n\n0.9.11 - 2010-09-20\n-------------------\n\n- Fix the cleanup method called by safe_load_site to mark the component\n registry as uninitialized regardless of whether the flag is in\n Zope2.App.zcml or Products.Five.zcml.\n [davisagli]\n\n0.9.10 - 2010-07-13\n-------------------\n\n- Make compatible with Zope 2.13 and avoid setup problems with zope.schema\n vocabularies.\n [hannosch]\n\n0.9.9 - 2009-11-14\n------------------\n\n- Call reindexObjectSecurity on the member folder conditionally, as CMF 2.2's\n PortalFolder no longer has this method.\n [davisagli]\n\n- Specify all dependencies in a backwards compatible way.\n [hannosch]\n\n0.9.8 - 2009-04-19\n------------------\n\n- Fixed deprecation warnings for use of Globals.\n [hannosch]\n\n- Added CMF22 constant.\n [stefan]\n\n0.9.8b4 - 2008-10-26\n--------------------\n\n- Fix homepage URL in setup.py.\n [stefan]\n\n0.9.8b3 - 2008-10-16\n--------------------\n\n- Bugfix: Reindex security of member-area after taking ownership.\n [stefan]\n\n0.9.8b2 - 2008-10-08\n--------------------\n\n- Egg was broken due to use of svn export. Who'd have thunk\n setuptools makes a difference?\n [stefan]\n\n0.9.8b1 - 2008-10-05\n--------------------\n\n- Install all CMF products quietly.\n- Eggified Products.CMFTestCase.\n\n0.9.7\n-----\n\n- The CMFSite layer can now be set up more than once.\n\n0.9.6\n-----\n\n- Deal with new skin setup in CMF 2.1 and up.\n- Provide hasPackage and installPackage if ZopeTestCase supports it.\n- Use new stateless GenericSetup API in CMF 2.1 and up.\n\n0.9.4\n-----\n\n- Minor test fixes to cater for changes in CMF.\n\n0.9.2\n-----\n\n- Added support for local component registries. We now call setSite() on the\n portal before importing profiles and before each test.\n\n0.9.0\n-----\n\n- Added CMF21 constant.\n- Prepared for switching ZopeTestCase to Zope3 interfaces.\n- Load etc/site.zcml lazily instead of using the wrapper.\n- Import extension profiles one by one to gain better control.\n- Added a CMFTestCase.addProfile() method that allows to import\n extension profiles into the site. This is an alternative to\n passing the 'extension_profiles' argument to setupCMFSite().\n- Create the CMF site lazily using layer.CMFSite.\n- Renamed utils.py to five.py.\n\n0.8.6\n-----\n\n- Made sure layer cleanup resets Five.zcml to \"not initialized\".\n\n0.8.4\n-----\n\n- Allow to pass a base profile to the setupCMFSite function.\n- Added a ZCMLLayer to support recent Zopes and zope.testing.testrunner.\n Thanks to Whit Morris.\n\n0.8.2\n-----\n\n- Added support for passing a list of GenericSetup extension profiles\n to the setupCMFSite function.\n\n0.8.0\n-----\n\n- Updated to new portal creation process of CMF 1.6.\n\n0.7.0\n-----\n\n- Updated to CMF 1.5.\n- Added an API module, ctc.py.\n- Added an addProduct() method to CMFTestCase that allows to add a product\n to the portal. This is as alternative to passing a 'products' argument\n to setupCMFSite().\n- CMFTestCase now uses the version independend 'transaction' module provided\n by ZopeTestCase >= 0.9.8.\n\n0.6.0 (not released)\n--------------------\n\n- setupCMFSite() now accepts a 'products' argument which allows to specify\n a list of products that will be added to the portal by executing their\n respective Extensions.Install.install() methods.\n- Removed setupCMFSkins() and the ability to setup a CMF site w/o skins.\n- Made the ZopeTestCase.utils module available as CMFTestCase.utils.\n- Added FunctionalTestCase base class for \"functional\" CMF tests.\n- Test classes now assert their interfaces.\n\n0.5.0\n-----\n\n- Package for testing CMF-based products and applications.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://plone.org/products/cmftestcase", "keywords": "cmf testing", "license": "ZPL", "maintainer": null, "maintainer_email": null, "name": "Products.CMFTestCase", "package_url": "https://pypi.org/project/Products.CMFTestCase/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/Products.CMFTestCase/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://plone.org/products/cmftestcase" }, "release_url": "https://pypi.org/project/Products.CMFTestCase/0.9.12/", "requires_dist": null, "requires_python": null, "summary": "Integration testing framework for CMF.", "version": "0.9.12" }, "last_serial": 527462, "releases": { "0.9.10": [ { "comment_text": "", "digests": { "md5": "8a0c15d5188299b25080d1e1ed8633fa", "sha256": "b597eca7c362e9430fecacfc91a8a9c082acadd2d3cae30a3f256462d1273df1" }, "downloads": -1, "filename": "Products.CMFTestCase-0.9.10.zip", "has_sig": false, "md5_digest": "8a0c15d5188299b25080d1e1ed8633fa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 27689, "upload_time": "2010-07-13T22:09:16", "url": "https://files.pythonhosted.org/packages/ea/0f/ea4058b2e2ee468070e7f7ff4bebbdeaffd387591518a80c5c849b0cf4ba/Products.CMFTestCase-0.9.10.zip" } ], "0.9.11": [ { "comment_text": "", "digests": { "md5": "19ed5008a93eff36b853780dd0bca119", "sha256": "e45472030397eba2eb16430652e5c0d2f50ea8af013b15bed8e850c75262d52a" }, "downloads": -1, "filename": "Products.CMFTestCase-0.9.11.zip", "has_sig": false, "md5_digest": "19ed5008a93eff36b853780dd0bca119", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 27958, "upload_time": "2010-09-20T22:39:14", "url": "https://files.pythonhosted.org/packages/cf/32/826885a98cff6b5982a1dd01a4146ef4baf8f29b92acf3e71ff36ebf75a3/Products.CMFTestCase-0.9.11.zip" } ], "0.9.12": [ { "comment_text": "", "digests": { "md5": "fbfdfe7bdb2158419d9899b4ab8c43eb", "sha256": "cbeb78c29a0ca96fda5f68d6808ea7a8a95adcca02df7e511b4e1d49a0d95ce2" }, "downloads": -1, "filename": "Products.CMFTestCase-0.9.12.zip", "has_sig": false, "md5_digest": "fbfdfe7bdb2158419d9899b4ab8c43eb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 28197, "upload_time": "2012-07-02T16:11:44", "url": "https://files.pythonhosted.org/packages/4a/32/7b9f97cc90f291e7d1a117e112742d60235b528f2c858a849c89608504a9/Products.CMFTestCase-0.9.12.zip" } ], "0.9.8": [ { "comment_text": "", "digests": { "md5": "84bbe23baa40fd9b15cf9496f5ea7afe", "sha256": "abfbf6528fd8aa9e40949db6c63231607c5977eb97de7cf06586a64171bd2e8a" }, "downloads": -1, "filename": "Products.CMFTestCase-0.9.8.zip", "has_sig": false, "md5_digest": "84bbe23baa40fd9b15cf9496f5ea7afe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 26712, "upload_time": "2009-04-19T16:43:55", "url": "https://files.pythonhosted.org/packages/46/a8/02d2e8485a89e26f3ba3d2450ab282f83086f7ed3baaa45b36bbbf77ee5d/Products.CMFTestCase-0.9.8.zip" } ], "0.9.8b1": [ { "comment_text": "", "digests": { "md5": "cc7f42c9d86a27c264d8a1b6ef67bec3", "sha256": "984912ed7f3f42eb7b9b7e947fb3f70417c6dad6343df6dc39c69d4afb087bf3" }, "downloads": -1, "filename": "Products.CMFTestCase-0.9.8b1.tar.gz", "has_sig": false, "md5_digest": "cc7f42c9d86a27c264d8a1b6ef67bec3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14607, "upload_time": "2008-10-05T18:46:07", "url": "https://files.pythonhosted.org/packages/49/78/4875fdb4cd7e09f730c55552f007370ce552054c021dec6cd64cfc1b86ec/Products.CMFTestCase-0.9.8b1.tar.gz" } ], "0.9.8b2": [ { "comment_text": "", "digests": { "md5": "fd3529f0a2e4586e4240a9fb07504b5c", "sha256": "a2fb6bcf4aa4c0cd07b7aa0962f5bb600a5aba09fcc23677fd9eea8813c934a9" }, "downloads": -1, "filename": "Products.CMFTestCase-0.9.8b2.tar.gz", "has_sig": false, "md5_digest": "fd3529f0a2e4586e4240a9fb07504b5c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14941, "upload_time": "2008-10-08T21:52:13", "url": "https://files.pythonhosted.org/packages/a7/01/b13035b2718cd65968b9fa45c3e4ec2091ff5f15d97bb4ebd636740eb709/Products.CMFTestCase-0.9.8b2.tar.gz" } ], "0.9.8b3": [ { "comment_text": "", "digests": { "md5": "1aca223ba5816eb337c43ad3eb637817", "sha256": "3df5d076fb2edb639fb748e50e68a7b9dcb9ffb42aa8852c1475ee267d9d810a" }, "downloads": -1, "filename": "Products.CMFTestCase-0.9.8b3.tar.gz", "has_sig": false, "md5_digest": "1aca223ba5816eb337c43ad3eb637817", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15051, "upload_time": "2008-10-16T19:20:49", "url": "https://files.pythonhosted.org/packages/8a/30/10dc1b442751e6eb44f1550c9bd18203a559e6575de5de7636e529ac3520/Products.CMFTestCase-0.9.8b3.tar.gz" } ], "0.9.8b4": [ { "comment_text": "", "digests": { "md5": "65eb1ecf7f5ae214d750402860569d39", "sha256": "d4b161f570a85fdfed1c2ace4a0b82ad35c27b211112bc9b288063bba1f73994" }, "downloads": -1, "filename": "Products.CMFTestCase-0.9.8b4.tar.gz", "has_sig": false, "md5_digest": "65eb1ecf7f5ae214d750402860569d39", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15114, "upload_time": "2008-10-26T20:20:01", "url": "https://files.pythonhosted.org/packages/ea/ca/2b8c09377aa6bd598d4c587ce1b2f93140a5db0d0d81754ade132c3456ae/Products.CMFTestCase-0.9.8b4.tar.gz" } ], "0.9.9": [ { "comment_text": "", "digests": { "md5": "6b6f5762022099e7b6df62c6475d5acf", "sha256": "8c5ec70e8d6577f00a34dd418d108a4731eb3a286614ebdb4bfcd0146c0f0315" }, "downloads": -1, "filename": "Products.CMFTestCase-0.9.9.zip", "has_sig": false, "md5_digest": "6b6f5762022099e7b6df62c6475d5acf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 27312, "upload_time": "2009-11-14T22:36:38", "url": "https://files.pythonhosted.org/packages/7a/84/8da4d8d40e59eb056942951700d793d5f3e851198b27bcdda0608e83a522/Products.CMFTestCase-0.9.9.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "fbfdfe7bdb2158419d9899b4ab8c43eb", "sha256": "cbeb78c29a0ca96fda5f68d6808ea7a8a95adcca02df7e511b4e1d49a0d95ce2" }, "downloads": -1, "filename": "Products.CMFTestCase-0.9.12.zip", "has_sig": false, "md5_digest": "fbfdfe7bdb2158419d9899b4ab8c43eb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 28197, "upload_time": "2012-07-02T16:11:44", "url": "https://files.pythonhosted.org/packages/4a/32/7b9f97cc90f291e7d1a117e112742d60235b528f2c858a849c89608504a9/Products.CMFTestCase-0.9.12.zip" } ] }