LittleDemon WebShell


Linux in-mum-web1499.main-hosting.eu 5.14.0-503.40.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Mon May 5 06:06:04 EDT 2025 x86_64
Path : /opt/alt/python311/lib/python3.11/site-packages/tests/integration/
File Upload :
Command :
Current File : //opt/alt/python311/lib/python3.11/site-packages/tests/integration/__init__.py

#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""integration pytests for :mod:`graypy`

.. note::

    These tests require an local instance of Graylog to send messages to.
"""

import requests


def validate_local_graylog_up():
    """Test to see if a localhost instance of Graylog is currently running"""
    try:
        requests.get("http://127.0.0.1:9000/api")
        return True
    except Exception:
        return False


LOCAL_GRAYLOG_UP = validate_local_graylog_up()

LittleDemon - FACEBOOK
[ KELUAR ]