summaryrefslogtreecommitdiff
path: root/src/zope/component/tests
Commit message (Collapse)AuthorAgeFilesLines
* Add a coverage environment to tox and reach 100% coverage.Python3.7supportJason Madden2018-10-063-15/+8
|
* Produce deprecation warnings for deprecated names in interfaces.py and ↵remove-unused-importsJason Madden2017-11-089-31/+106
| | | | | | | | | | | | | registry.py And also in hookable.py Do this using zope.deferredimport and zope.deprecation, two new dependencies. This introduces a transitive dependency on zope.proxy, but that was already part of the 'security' extra. zope.proxy runs on pypy but it doesn't yet support making the C extension optional (https://github.com/zopefoundation/zope.proxy/issues/26) Also drop the use of _compat._BLANK everywhere and just use the literal.
* Remove unused, but not BWC exported, imports from _api.Jason Madden2017-11-081-3/+3
|
* Always depend on zope.hookableJason Madden2017-11-072-100/+2
| | | | | | | | And remove our Python implementation that was added in 2009. The two have now diverged with new features in zope.hookable. Since 2012, zope.hookable has had a Python implementation. Now, with 4.2, the C extension is an optional build.
* 100% coverageissue29Jason Madden2017-06-3012-381/+210
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add change note and badge to readme. Remove unused class and function. Omit standalonetests.py entirely from coverage. Another unused class. Incorporate feedback in test__api.py * Bring back _callFUT and make the queryAdapterInContext tests call it * Change raise NotImplentedError into specific fails_if_called() calls. Remove redundant argument now that all test in Test_adapts pass under all versions. Remove NotImplementedError from test_globalregistry.py Remove NotImplementedError from test_hookable.py Remove NotImplementedError from test_registry.py Remove NotImplementedError from test_security.py Remove NotImplementedError from test_zcml.py Remove NotImplementedError from test_factory.py Document ZCML feature and devmode. Really accept all arguments unless opted out.
* Add failing functiona/integration tests at this level for the interaction ↵Jason Madden2015-05-281-1/+72
| | | | between zope.security/zope.proxy/zope.component. These previously existed in a zcml.rst doctest only and will fail under PyPy under zopefoundation/zope.security#11 and/or zopefoundation/zope.proxy#8 is fixed.
* Run test_persistentregistry under PyPy/3, and fix it. Doctests still fail ↵Jason Madden2015-05-271-0/+2
| | | | under PyPy.
* Disable 'standalone' test when zope.security is missing.Tres Seaver2015-02-251-35/+42
|
* Suppress ResourceWarning under Py3k.Tres Seaver2014-03-171-14/+18
|
* Implemented ability to specify adapter and utility names in Python. UseStephan Richter2014-02-051-9/+46
| | | | | | the ``@zope.component.named(name)`` decorator to specify the name. All tox environments pass and coverage is at 100%.
* Replace failUnless with the new spelling to fix a warning on Python 3.Gediminas Paulauskas2013-07-051-6/+6
|
* Reset the cached adapter_hooks at zope.testing.cleanup.cleanUp time (LP1100501).Jason Madden2013-03-041-1/+9
|
* - Changed "ZODB3" depdendency to "persistent".Stephan Richter2013-02-282-2/+3
| | | | | | - ``tox`` now runs all tests for Python 3.2 and 3.3. - Enable buildout for Python 3. - Fixed new failing tests.
* Assert unsupported in older PythonsRoss Patterson2012-08-011-1/+1
|
* Don't pickle registry flattened bases in the 'ro' attribute.Ross Patterson2012-08-011-1/+10
| | | | | This avoids pickle references that are redundant with the '__bases__' pickling.
* Add coverage for pickling/persisting registry bases.Ross Patterson2012-08-011-5/+7
|
* Merge tseaver-test_cleanup branch.Tres Seaver2012-06-2916-0/+4702