Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Branch: refs/heads/master Date: 2021-07-01T16:46:02+02:00 Author: Maurits van Rees (mauritsvanrees) <[email protected]> Commit: plone/Products.PlonePAS@b4df71e Fixed tests for cookie auth to also work with zope.interface 5.3.0. This uses simpler representations for interfaces. Tests now pass with earlier and later versions. Original error from [Jenkins](https://jenkins.plone.org/job/pull-request-5.2-3.6/1938/testReport/junit/Products.PlonePAS/tests/cookie_auth_rst/): ``` File "/home/jenkins/.buildout/eggs/cp36m/Products.PlonePAS-6.0.7-py3.6.egg/Products/PlonePAS/tests/cookie_auth.rst", line 55, in cookie_auth.rst Failed example: for active, iface in actives: print(iface) for id, plugin in active: if id == 'credentials_cookie_auth': print(True) Expected: <...IExtraction...>...True <...IChallenge...>...True <...ICredentialsUpdate...>...<...ICredentialsReset...> Got: Products.PluggableAuthService.interfaces.plugins.IExtractionPlugin True Products.PluggableAuthService.interfaces.plugins.IChallengePlugin True Products.PluggableAuthService.interfaces.plugins.ICredentialsUpdatePlugin Products.PluggableAuthService.interfaces.plugins.ICredentialsResetPlugin ``` The fix is to print `iface.__name__`, which looks the same in all versions. Files changed: A news/237.bugfix M src/Products/PlonePAS/tests/cookie_auth.rst Repository: Products.PlonePAS Branch: refs/heads/master Date: 2021-07-02T08:50:41+02:00 Author: Jens W. Klein (jensens) <[email protected]> Commit: plone/Products.PlonePAS@4390f6f Merge pull request #63 from plone/maurits/fix-interface-repr-tests-master Fixed tests for cookie auth to also work with zope.interface 5.3.0. [master] Files changed: A news/237.bugfix M src/Products/PlonePAS/tests/cookie_auth.rst
- Loading branch information