Bug fixes:
- Remove setuptools fossils. [maurits] (#72)
- Fix README for removed unittest.makeSuite in python 3.13. [petschki] (#100)
Bug fixes:
- makeTestRequest: use BytesIO to set up the test Response. @gotcha (fix_makeTestRequest)
Bug fixes:
- Remove incorrect hard dependency on five.localsitemanager. @davisagli (#86)
Breaking changes:
- Drop python 2.7 support. [gforcada] (#1)
- Drop ZServer support. [gforcada] (#2)
Internal:
- Update configuration files. [plone devs] (5cc689e5)
Bug fixes:
- Fix tests when run with ZODB 5.8.1+. [maurits] (#581)
Bug fixes:
- fix waitress deprecation warning (#77)
- Catch OSError in test teardown when removing a temporary directory. Fixes issue 79. [maurits] (#79)
Bug fixes:
- update isort configuration for version 5 of isort (#75)
Bug fixes:
- fix broken Flake8 job (#74)
Breaking changes:
- Drop support for Python 3.4 and 3.5. Remove "z2" extra. [jensens] (#72)
New features:
- Update links for further information about testing. [jugmac00] (#71)
Bug fixes:
- Fix tests when using zope.testrunner internals since its version 5.1. [jensens] (#72)
Bug fixes:
- Fix issue with test-setup when using ZServer 4.0.2. [pbauer] (#69)
Bug fixes:
- Remove the
ZOPETESTCASEALERT
as it imports from ZopeTestCase and has side effects. Fixes #64. [thet] (#67)
Bug fixes:
- Fixed test for 'Connection refused' which could be 'Connection reset'. [maurits] (#59)
Breaking changes:
plone.testing.z2
is now a BBB shim forplone.testing.zope
, thus it switches the tests to use WSGI. If you absolutely want to keep using ZServer please import fromplone.testing.zserver
.plone.testing.z2
now only contains a no-op FTPServer layer because FTP is not supported by WSGI. If you really need it, import it fromplone.testing.zserver
but this will not work on Python 3.- Default to picking a dynamical port for ZServer layers instead of a static default port. [Rotonen]
New features:
- Make
ZServer
an optional dependency. - Add support for Python 3.6. [rudaporto, icemac]
Bug fixes:
- Explicitly depend on ZServer on the z2 extra. [Rotonen]
Breaking changes:
- Default to picking a dynamical port for ZServer layers instead of a static default port. [Rotonen]
Bug fixes:
- Pinned ZODB to < 5.4.0 for testing to avoid flaky doctest layer teardowns. [Rotonen]
- Loosened doctest assertions to keep up with Zope-side changes. [Rotonen]
- Fix most of the code smells Jenkins complains about.
- Fix the Zope exception hook when using the ZServer layer.
- Fix teardown of the
plone.testing.security.Checkers
layer. It was not properly restoring zope.security's_checkers
dict.
- Breaking changes:
- Only support
Zope >= 4
, no longer supportZope2
. - Drop support for Python 2.6.
- Only support
- No longer use deprecated import for getSite/setSite. [jensens]
- Update code to follow Plone styleguide. [gforcada]
- Do not break on import of
plone.testing.z2
when using zope.testbrowser >= 5.0 which no longer depends on mechanize.
- Fix for ZODB 5: Abort transaction before DB close. [jensens, jimfulton]
- Remove BBB code and imports for Zope < 2.13. [thet]
- Fix issue, which prevented using layered-helper on Python 3. [datakurre]
- Fix
.z2.Startup.setUpZCML()
to be compatible with Zope >= 4.0a2. [icemac] - Fix version pins on the package itself to be able to run the tests. [gforcada]
Rerelease of 4.2.0 as 5.0.0.
The version 4.2.0 had changed error handling in the public api, causing exceptions where before everything continued to work.
New:
- Refuse to work if user breaks test isolation. [do3cc]
- Check that tests don't run together with ZopeTestCase [do3cc]
Fixes:
- Fix tests for Zope 4, where the app root Control_Panel is not available anymore. [thet]
Fixes:
- Rename all txt doctest files to rst. Reformat doctests. [thet]
- PEP 8. [thet]
- Depend on zope.testrunner, which was moved out from zope.testing.testrunner. [thet]
- Add support for Zope 4. [thet]
- Prevent exception masking in finally clause of zopeApp context. [do3cc]
- Rerelease for clarity due to double release of 4.0.13. [maurits]
- Added
multiinit
-parameter to z2.installProduct to allow multiple initialize methods for a package [tomgross]
- Really fix not to depend on unittest2. [icemac]
- Add tox.ini [icemac]
- Fixed AttributeError when importing
plone.testing.z2
ifzope.testbrowser
4.x is used but notzope.app.testing
. [icemac] - Broke dependency on unittest2 for Python 2.7+ as all features of unittest2 are integrated in unittest there. [icemac]
- Fix z2.txt doctest for FTP_SERVER. [timo]
- Read 'FTPSERVER_HOST' and 'FTPSERVER_PORT' from the environment variables if possible. This allows us to run tests in parallel on CI servers. [timo]
- Replace deprecated Zope2VocabularyRegistry import. [timo]
- Factor test request creation out of addRequestContainer into makeTestRequest. [davisagli]
- Fix quoting of urls by the testbrowser. [do3cc]
- Update manifest.in to include content in src directory. [esteele]
- Fixed an issue where a query string would be unquoted twice; once while setting up the HTTP request and once in the handler (the publisher). [malthe]
- Fixed the cache reset code. In some situations the function does not have any defaults, so we shouldn't try to clear out the app reference. [malthe]
- Fixed class names in documentation to match code. [icemac]
- The defaults of the
ZPublisher.Publish.get_module_info
function cache a reference to the app, so make sure that gets reset when tearing down the app. This fixes a problem where the testbrowser in the second functional layer to be set up accessed the database from the first functional layer. [davisagli]
- Moved readme file containing tests into the package, so tests can be run from released source distributions. Closes http://dev.plone.org/plone/ticket/11821. [hannosch]
- Relicense under BSD license. See http://plone.org/foundation/materials/foundation-resolutions/plone-framework-components-relicensing-policy [davisagli]
- Release 4.0 Final. [esteele]
- Add MANIFEST.in. [WouterVH]
- Fixed Browser cookies retrieval with Zope 2.13. [vincentfretin]
- Add
ZCMLSandbox
layer to load a ZCML file; replacessetUpZcmlFiles
andtearDownZcmlFiles
helper functions. [gotcha]
- Handle test failures due to userFolderAddUser returning the user object in newer versions of Zope. [esteele]
- Add
setUpZcmlFiles
andtearDownZcmlFiles
helpers to enable loading of ZCML files without too much boilerplate. [gotcha] - Add some logging. [gotcha]
- Add the
[security]
extra, to provide tear-down of security checkers. [optilude] - Let the
IntegrationTesting
andFunctionalTesting
lifecycle layers set up requestPARENTS
and, if present, wire upzope.globalrequest
. [optilude] - Make the test browser support IStreamIterators [optilude]
- Make sure ZCML doesn't load during App startup in Zope 2.13. [davisagli]
- Ignore the testinghome configuration setting if present. [stefan]
- Use the new API for getting the packages_to_initialize list in Zope 2.13. [davisagli]
- De-duplicate _register_monkies and _meta_type_regs in the correct module on teardown of the Startup layer in Zope 2.13. [davisagli]
- Allow doctest suites from zope.testing to work with plone.testing.layer.layered. Previously, only doctest suites from the stdlib would see the layer global. [nouri]
- Changed documentation to advertise the coverage library for running coverage tests instead of the built-in zope.testing support. This also avoids using z3c.coverage. The coverage tests now run at the same speed as a normal test run, making it more likely to get executed frequently. [hannosch]
- Correct license to GPL version 2 only. [hannosch]
- Fix some user id vs name confusion. [rossp]
- Add the option to specify ZServer host and port through environment variables - ZSERVER_HOST and ZSERVER_PORT). [esteele]
- Fix a problem that would cause
<meta:redefinePermission />
to break. In particular fixes the use of thezope2.Public
permission. [optilude] - Set the security implementation to "Python" for easier debugging during the z2.STARTUP layer. [optilude]
- Initialize Five in the z2.Startup layer, pushing a Zope2VocabularyRegistry on layer set-up and restoring the previous one upon tear-down. [dukebody]
- Initial release