from src.gameplay.healing.observers.autoHur import autoHur


def test_disabled_auto_hur_ignores_missing_status():
    context = {
        'auto_hur': {'enabled': False},
        'ng_statusBar': {
            'hpPercentage': None,
            'manaPercentage': None,
            'mana': None,
        },
    }

    assert autoHur(context) is None


def test_enabled_auto_hur_waits_for_status_ocr():
    context = {
        'auto_hur': {'enabled': True},
        'ng_statusBar': {
            'hpPercentage': None,
            'manaPercentage': None,
            'mana': None,
        },
    }

    assert autoHur(context) is None
