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

zopefoundation / zope.app.zcmlfiles / 16098867555

06 May 2025 06:28AM UTC coverage: 100.0%. Remained the same
16098867555

push

github

web-flow
Update Python version support. (#10)

* Drop support for Python 3.7, 3.8.

* Add support for Python 3.12, 3.13.

31 of 31 relevant lines covered (100.0%)

1.0 hits per line

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

100.0
/src/zope/app/zcmlfiles/tests.py
1
import unittest
1✔
2
import warnings
1✔
3

4
from zope.component.testing import PlacelessSetup
1✔
5
from zope.configuration import xmlconfig
1✔
6

7
import zope.app.zcmlfiles
1✔
8

9

10
class TestIncludes(PlacelessSetup, unittest.TestCase):
1✔
11

12
    def _execute(self, filename='configure.zcml',
1✔
13
                 package=zope.app.zcmlfiles, context=None):
14

15
        with warnings.catch_warnings():
1✔
16
            warnings.simplefilter('ignore')
1✔
17
            return xmlconfig.file(filename, package, context=context)
1✔
18

19
    def test_configure(self):
1✔
20
        self._execute('configure.zcml')
1✔
21

22
    def test_ftesting(self):
1✔
23
        self._execute('ftesting.zcml')
1✔
24

25
    def test_meta(self):
1✔
26
        self._execute('meta.zcml')
1✔
27

28
    def test_menus(self):
1✔
29
        context = self._execute('meta.zcml')
1✔
30
        self._execute('menus.zcml', context=context)
1✔
31

32
    def test_browser(self):
1✔
33
        context = self._execute('meta.zcml')
1✔
34
        context = self._execute('menus.zcml', context=context)
1✔
35
        from zope import security
1✔
36
        context = self._execute(package=security,
1✔
37
                                context=context)
38
        from zope.app import rotterdam
1✔
39
        context = self._execute(package=rotterdam,
1✔
40
                                context=context)
41
        from zope import dublincore
1✔
42
        context = self._execute(package=dublincore,
1✔
43
                                context=context)
44
        self._execute('browser.zcml', context=context)
1✔
45

46

47
def test_suite():
1✔
48
    return unittest.defaultTestLoader.loadTestsFromName(__name__)
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