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

zopefoundation / grokcore.view / 16248935885

18 Jun 2025 06:52AM UTC coverage: 93.234%. Remained the same
16248935885

push

github

icemac
Back to development: 5.1

151 of 180 branches covered (83.89%)

Branch coverage included in aggregate %.

1475 of 1564 relevant lines covered (94.31%)

0.94 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

85.71
/src/grokcore/view/tests/base/view/eithertemplateorrender.py
1
"""
2
Only one, either a template, or render() can be specified:
3

4
  >>> grok.testing.grok(__name__)
5
  Traceback (most recent call last):
6
    ...
7
  zope.configuration.config.ConfigurationExecutionError:\
8
  martian.error.GrokError: Multiple possible ways to render view\
9
  <class 'grokcore.view.tests.base.view.eithertemplateorrender.CavePainting'>.\
10
  It has both a 'render' method as well as an associated template.
11
"""
12
import grokcore.view as grok
1✔
13

14

15
class Mammoth(grok.Context):
1✔
16
    pass
1✔
17

18

19
class CavePainting(grok.View):
1✔
20
    def render(self):
1✔
21
        pass
×
22

23

24
cavepainting = grok.PageTemplate("nothing")
1✔
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