🕷️ The BEST Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev
Python aiai-scrapingautomationcrawlercrawlingcrawling-pythondatadata-extractionmcpmcp-serverplaywrightpythonscrapingselectorsstealthweb-scraperweb-scrapingweb-scraping-pythonwebscrapingxpath
tests: change tests accordingly
Karim shoaird49e0477369e
diff --git a/tests/cli/test_shell_functionality.py b/tests/cli/test_shell_functionality.pyindex 817ef57..d23fa22 100644--- a/tests/cli/test_shell_functionality.py+++ b/tests/cli/test_shell_functionality.py@@ -178,23 +178,21 @@ class TestCustomShell:def test_shell_initialization(self):"""Test shell initialization"""- with patch('scrapling.core.shell.InteractiveShellEmbed'):- shell = CustomShell(code="", log_level="debug")+ shell = CustomShell(code="", log_level="debug")- assert shell.log_level == 10 # DEBUG level- assert shell.page is None- assert len(shell.pages) == 0+ assert shell.log_level == 10 # DEBUG level+ assert shell.page is None+ assert len(shell.pages) == 0def test_shell_namespace(self):"""Test shell namespace creation"""- with patch('scrapling.core.shell.InteractiveShellEmbed'):- shell = CustomShell(code="")- namespace = shell.get_namespace()-- # Check all expected functions/classes are available- assert 'get' in namespace- assert 'post' in namespace- assert 'Fetcher' in namespace- assert 'DynamicFetcher' in namespace- assert 'view' in namespace- assert 'uncurl' in namespace+ shell = CustomShell(code="")+ namespace = shell.get_namespace()++ # Check all expected functions/classes are available+ assert 'get' in namespace+ assert 'post' in namespace+ assert 'Fetcher' in namespace+ assert 'DynamicFetcher' in namespace+ assert 'view' in namespace+ assert 'uncurl' in namespace