File: test_plugins.py

package info (click to toggle)
cherrypy3 18.10.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,248 kB
  • sloc: python: 17,559; makefile: 29; sh: 8
file content (13 lines) | stat: -rw-r--r-- 340 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
from cherrypy.process import plugins


__metaclass__ = type


class TestAutoreloader:
    def test_file_for_file_module_when_None(self):
        """No error when ``module.__file__`` is :py:data:`None`."""
        class test_module:
            __file__ = None

        assert plugins.Autoreloader._file_for_file_module(test_module) is None