• 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

83.33
/src/grokcore/view/tests/base/view/dirtemplateandrender.py
1
"""
2
A View may either have an associated template or a render-method. Here
3
we check that this also works for templates in a template-directory:
4

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

13
"""
14
import grokcore.view as grok
1✔
15

16

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

20

21
class CavePainting(grok.View):
1✔
22
    def render(self):
1✔
23
        pass
×
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