from sentinelscan.modules import web_recon

def test_fetch_headers():
    headers = web_recon.fetch_headers("http://example.com")
    assert isinstance(headers, dict)

def test_analyze_headers():
    results = web_recon.analyze_headers("example.com")
    assert isinstance(results, list)

def test_detect_technologies():
    headers = {"Server": "Apache", "X-Powered-By": "PHP/7.4"}
    results = web_recon.detect_technologies(headers)
    assert any("PHP" in r for r in results)

def test_ssl_info():
    results = web_recon.ssl_info("example.com")
    assert isinstance(results, list)

def test_run_web_recon():
    results = web_recon.run_web_recon("example.com")
    assert isinstance(results, list)
