示例#1
0
文件: loading.py 项目: IOSD/hospital
    def is_healthcheck(self, value):
        """Return True if ``value`` is an health check.

        Default implementation uses :func:`hospital.core.is_healthcheck`.

        """
        return is_healthcheck(value)
示例#2
0
文件: loading.py 项目: Natim/hospital
    def is_healthcheck(self, value):
        """Return True if ``value`` is an health check.

        Default implementation uses :func:`hospital.core.is_healthcheck`.

        """
        return is_healthcheck(value)
示例#3
0
def pytest_collection_modifyitems(session, config, items):
    for item in items:
        if is_healthcheck(item.cls) or is_healthcheck(item.function):
            item.add_marker("healthcheck")