test: update tests accordingly

This commit is contained in:
Karim shoair
2026-03-09 00:28:32 +02:00
parent 8e3bf89e6c
commit d48ac78c79
-16
View File
@@ -7,7 +7,6 @@ from scrapling.engines.toolbelt.navigation import (
create_async_intercept_handler,
)
from scrapling.engines.toolbelt.fingerprints import (
generate_convincing_referer,
get_os_name,
generate_headers
)
@@ -204,21 +203,6 @@ class TestConstructProxyDict:
class TestFingerprintFunctions:
"""Test fingerprint generation functions"""
def test_generate_convincing_referer(self):
"""Test referer generation"""
url = "https://sub.example.com/page.html"
result = generate_convincing_referer(url)
assert result == "https://www.google.com/"
def test_generate_convincing_referer_caching(self):
"""Test referer generation caching"""
url = "https://example.com"
result1 = generate_convincing_referer(url)
result2 = generate_convincing_referer(url)
assert result1 == result2
def test_get_os_name(self):
"""Test OS name detection"""
result = get_os_name()