import pytest

from wcag_pdf_pytest.pdf_inspector import SCResult, evaluate_sc

SC_NUM = "3.3.5"
SC_TITLE = "Help"
SC_LEVEL = "AAA"
SC_APPLICABILITY = "Applies"
SC_NOTES = "Provide context-sensitive help for complex tasks."


@pytest.mark.wcag21
@pytest.mark.AAA
def test_sc_3_3_5_help(wcag_pdf_paths, wcag_context):
    assert wcag_pdf_paths, "No --wcag-pdf provided."
    res = evaluate_sc(SC_NUM, SC_TITLE, SC_LEVEL, wcag_pdf_paths, SC_APPLICABILITY, SC_NOTES)
    assert isinstance(res, SCResult)
    assert res.passed, res.reason
