[Checkins] [zopefoundation/Zope] 5eb205: Rewrite test into a unittest.

Michael Howitz noreply at github.com
Mon May 20 13:41:34 CEST 2019


  Branch: refs/heads/issue_397
  Home:   https://github.com/zopefoundation/Zope
  Commit: 5eb2055b341ba917bd8c3041caf82948a54e3f26
      https://github.com/zopefoundation/Zope/commit/5eb2055b341ba917bd8c3041caf82948a54e3f26
  Author: Michael Howitz <mh at gocept.com>
  Date:   2019-05-20 (Mon, 20 May 2019)

  Changed paths:
    M src/Products/Five/browser/tests/test_pages.py

  Log Message:
  -----------
  Rewrite test into a unittest.


  Commit: ce327e3d25e6ee569f156975f6943831f194bd99
      https://github.com/zopefoundation/Zope/commit/ce327e3d25e6ee569f156975f6943831f194bd99
  Author: Michael Howitz <mh at gocept.com>
  Date:   2019-05-20 (Mon, 20 May 2019)

  Changed paths:
    M src/Products/Five/browser/tests/pages.zcml
    M src/Products/Five/browser/tests/test_pages.py

  Log Message:
  -----------
  Fix the test:

* Require a permission on the view so security has to do its work
* add a test for an attribute which is not allowed explicitly

The first test currently fails because `guarded_getattr` requires an authorized
user. Which is not the case during traversal.


Compare: https://github.com/zopefoundation/Zope/compare/64fc2ab2d4f4...ce327e3d25e6


More information about the checkins mailing list