Karim shoair commited on
Commit ·
3e4349d
1
Parent(s): 243d94d
tests: change tests accordingly
Browse files
tests/cli/test_shell_functionality.py
CHANGED
|
@@ -178,23 +178,21 @@ class TestCustomShell:
|
|
| 178 |
|
| 179 |
def test_shell_initialization(self):
|
| 180 |
"""Test shell initialization"""
|
| 181 |
-
|
| 182 |
-
shell = CustomShell(code="", log_level="debug")
|
| 183 |
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
|
| 187 |
|
| 188 |
def test_shell_namespace(self):
|
| 189 |
"""Test shell namespace creation"""
|
| 190 |
-
|
| 191 |
-
|
| 192 |
-
|
| 193 |
-
|
| 194 |
-
|
| 195 |
-
|
| 196 |
-
|
| 197 |
-
|
| 198 |
-
|
| 199 |
-
|
| 200 |
-
assert 'uncurl' in namespace
|
|
|
|
| 178 |
|
| 179 |
def test_shell_initialization(self):
|
| 180 |
"""Test shell initialization"""
|
| 181 |
+
shell = CustomShell(code="", log_level="debug")
|
|
|
|
| 182 |
|
| 183 |
+
assert shell.log_level == 10 # DEBUG level
|
| 184 |
+
assert shell.page is None
|
| 185 |
+
assert len(shell.pages) == 0
|
| 186 |
|
| 187 |
def test_shell_namespace(self):
|
| 188 |
"""Test shell namespace creation"""
|
| 189 |
+
shell = CustomShell(code="")
|
| 190 |
+
namespace = shell.get_namespace()
|
| 191 |
+
|
| 192 |
+
# Check all expected functions/classes are available
|
| 193 |
+
assert 'get' in namespace
|
| 194 |
+
assert 'post' in namespace
|
| 195 |
+
assert 'Fetcher' in namespace
|
| 196 |
+
assert 'DynamicFetcher' in namespace
|
| 197 |
+
assert 'view' in namespace
|
| 198 |
+
assert 'uncurl' in namespace
|
|
|