From 878be9ccbf4c245ba0df3728a0ec19cbcb7262c6 Mon Sep 17 00:00:00 2001 From: Karim shoair Date: Sun, 31 Aug 2025 02:57:30 +0300 Subject: [PATCH] tests: update tests accordingly --- tests/fetchers/test_constants.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/fetchers/test_constants.py b/tests/fetchers/test_constants.py index b6aee29..b873322 100644 --- a/tests/fetchers/test_constants.py +++ b/tests/fetchers/test_constants.py @@ -1,7 +1,8 @@ from scrapling.engines.constants import ( DEFAULT_DISABLED_RESOURCES, DEFAULT_STEALTH_FLAGS, - HARMFUL_DEFAULT_ARGS + HARMFUL_DEFAULT_ARGS, + DEFAULT_FLAGS, ) @@ -20,8 +21,8 @@ class TestConstants: assert "--enable-automation" in HARMFUL_DEFAULT_ARGS assert "--disable-popup-blocking" in HARMFUL_DEFAULT_ARGS - def test_default_stealth_flags(self): + def test_flags(self): """Test default stealth flags""" - assert "--no-pings" in DEFAULT_STEALTH_FLAGS + assert "--no-pings" in DEFAULT_FLAGS assert "--incognito" in DEFAULT_STEALTH_FLAGS assert "--disable-blink-features=AutomationControlled" in DEFAULT_STEALTH_FLAGS