• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

zopefoundation / Zope / 19162970212
82%

Build:
DEFAULT BRANCH: master
Ran 07 Nov 2025 08:45AM UTC
Jobs 1
Files 357
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

07 Nov 2025 08:43AM UTC coverage: 82.336%. Remained the same
19162970212

push

github

web-flow
Improve testHTMLTests.py from Products.PageTemplates. (#1270)

* Improve testHTMLTests.py from Products.PageTemplates.

I was investigating a newer Chameleon 4.6.0, but ran into two errors on the current 4.4.4 as well.
Maybe this is just for me locally on Mac.

1. `test_module_traversal` could fail with:

```
  File "/Users/maurits/community/plone-coredev/6.2/src/Zope/src/Products/PageTemplates/ZRPythonExpr.py", line 49, in __call__
    return eval(self._code, vars, {})
   - __traceback_info__: a().getUser().getUserName()
  File "PythonExpr", line 1, in <module>
AttributeError: <exception str() failed>
```

Basically `getSecurityManager().getUser()` would return None instead of an anonymous user, so `None.getUserName` would give an AttributeError.
For the purposes of this test (check that access to `AccessControl.getSecurityManager` is allowed), just trying to call `getUser` is enough.

2. `test_underscore_traversal` could fail, or seem to fail.
A LocationError was raised, which should be fine because that is what we are testing for.
But really we were no longer testing anything useful.
In a old security fix we made sure that `random._itertools` could not be used.  But now I can't find a Python version where in a plain Python prompt `from random import _itertools` works.
So in this test I now recreate this situation.

* - manually fix linting; needs zope.meta run

* - ran zope.meta but removed testing for Python 3.14

---------

Co-authored-by: Jens Vagelpohl <jens@plyp.com>

3531 of 6002 branches covered (58.83%)

Branch coverage included in aggregate %.

6 of 6 new or added lines in 1 file covered. (100.0%)

28110 of 32427 relevant lines covered (86.69%)

0.87 hits per line

Jobs
ID Job ID Ran Files Coverage
1 19162970212.1 07 Nov 2025 08:45AM UTC 357
82.34
GitHub Action Run
Source Files on build 19162970212
  • Tree
  • List 357
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 448b2863 on github
  • Prev Build on master (#19011965913)
  • Next Build on master (#19208166161)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc