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

zopefoundation / grokcore.message / 16098800953

18 Jun 2025 06:36AM UTC coverage: 94.186%. Remained the same
16098800953

push

github

icemac
Back to development: 5.1

9 of 12 branches covered (75.0%)

Branch coverage included in aggregate %.

72 of 74 relevant lines covered (97.3%)

0.97 hits per line

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

100.0
/src/grokcore/message/tests.py
1
"""Test harness"""
2

3
import doctest
1✔
4
import unittest
1✔
5

6
from zope.component.testlayer import ZCMLFileLayer
1✔
7
from zope.publisher.browser import TestRequest
1✔
8
from zope.security.management import endInteraction
1✔
9
from zope.security.management import newInteraction
1✔
10

11
import grokcore.message
1✔
12

13

14
class GrokcoreMessageLayer(ZCMLFileLayer):
1✔
15

16
    def setUp(self):
1✔
17
        ZCMLFileLayer.setUp(self)
1✔
18
        newInteraction(TestRequest())
1✔
19

20
    def tearDown(self):
1✔
21
        endInteraction()
1✔
22
        ZCMLFileLayer.tearDown(self)
1✔
23

24

25
def test_suite():
1✔
26
    suite = unittest.TestSuite()
1✔
27
    test = doctest.DocFileSuite(
1✔
28
        'README.rst', optionflags=(doctest.ELLIPSIS |
29
                                   doctest.IGNORE_EXCEPTION_DETAIL))
30
    test.layer = GrokcoreMessageLayer(grokcore.message)
1✔
31
    suite.addTest(test)
1✔
32
    return suite
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