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)
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")