tests: change tests accordingly
This commit is contained in:
@@ -178,7 +178,6 @@ class TestCustomShell:
|
|||||||
|
|
||||||
def test_shell_initialization(self):
|
def test_shell_initialization(self):
|
||||||
"""Test shell initialization"""
|
"""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.log_level == 10 # DEBUG level
|
||||||
@@ -187,7 +186,6 @@ class TestCustomShell:
|
|||||||
|
|
||||||
def test_shell_namespace(self):
|
def test_shell_namespace(self):
|
||||||
"""Test shell namespace creation"""
|
"""Test shell namespace creation"""
|
||||||
with patch('scrapling.core.shell.InteractiveShellEmbed'):
|
|
||||||
shell = CustomShell(code="")
|
shell = CustomShell(code="")
|
||||||
namespace = shell.get_namespace()
|
namespace = shell.get_namespace()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user