from sentinelscan.modules import subdomain

def test_resolve_subdomain():
    result = subdomain.resolve_subdomain("www", "example.com")
    assert isinstance(result, str)

def test_check_http():
    result = subdomain.check_http("example.com")
    assert isinstance(result, str)

def test_find_subdomains_empty_wordlist(monkeypatch):
    monkeypatch.setattr(subdomain, "WORDLIST", "nonexistent.txt")
    results = subdomain.find_subdomains("example.com")
    assert isinstance(results, list)

def test_brute_force_subdomains():
    results = subdomain.brute_force_subdomains("example.com", length=1)
    assert isinstance(results, list)

def test_passive_enumeration():
    results = subdomain.passive_enumeration("example.com")
    assert isinstance(results, list)
