• 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/eitherviewtemplateequalorrender.py
1
"""
2

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

11
"""
12

13
import grokcore.view as grok
1✔
14

15

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

19

20
class CavePainting(grok.View):
1✔
21
    template = grok.PageTemplate(filename='templates/cavepainting.pt')
1✔
22

23
    def render(self):
1✔
24
        return "Cool I have a render method."
×
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