Skip to content

Commit 5082087

Browse files
committed
Removed TreeRoot class
It was not used
1 parent 46f39b0 commit 5082087

File tree

7 files changed

+7
-29
lines changed

7 files changed

+7
-29
lines changed

contextshell/TreeRoot.py

-5
This file was deleted.

contextshell/session_stack/SessionManager.py

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from contextshell.session_stack.SessionStack import SessionStack
77
from contextshell.session_stack.RelativeLayer import *
88
from contextshell.CommandInterpreter import CommandInterpreter
9-
from contextshell.TreeRoot import TreeRoot
109
from contextshell.actions.BasicActions import *
1110

1211

tests/CommandInterpreterTests.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
import unittest
22

3+
from contextshell.Node import Node
34
from contextshell.NodePath import NodePath
45
from contextshell.session_stack.CrudSessionLayer import CrudSessionLayer
56
from contextshell.session_stack.SessionManager import SessionManager
67
from contextshell.Command import Command
7-
from contextshell.TreeRoot import TreeRoot
88
from contextshell.CommandInterpreter import CommandInterpreter
99
from contextshell.ActionNode import ActionNode
1010

1111

1212
class CommandInterpreterTests(unittest.TestCase):
1313
def setUp(self):
14-
root = TreeRoot()
14+
root = Node()
1515
manager = SessionManager(root)
1616
self.session = manager.create_session()
1717

@@ -113,7 +113,7 @@ def __call__(self, session: CrudSessionLayer, target: NodePath, *arguments):
113113
return self.return_value
114114

115115
def setUp(self):
116-
root = TreeRoot()
116+
root = Node()
117117
manager = SessionManager(root)
118118
self.session = manager.create_session()
119119
self.interpreter = CommandInterpreter(self.session)

tests/ShellTests.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import unittest
22

3-
from contextshell.TreeRoot import TreeRoot
3+
from contextshell.Node import Node
44
from contextshell.Shell import *
55
from contextshell.session_stack.SessionManager import SessionManager
66

77

88
class ShellTests(unittest.TestCase):
99
def setUp(self):
10-
self.root = TreeRoot()
10+
self.root = Node()
1111
manager = SessionManager(self.root)
1212

1313
self.shell = Shell(manager.create_session())
@@ -31,7 +31,7 @@ def test_set_string(self):
3131

3232
class ShellCompletionTests(unittest.TestCase):
3333
def setUp(self):
34-
self.root = TreeRoot()
34+
self.root = Node()
3535
manager = SessionManager(self.root)
3636

3737
self.shell = Shell(manager.create_session())

tests/TreeRootTests.py

-14
This file was deleted.

tests/session_stack/SessionManagerTests.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,12 @@
77
from contextshell.session_stack.SessionStorageLayer import SessionStorageLayer
88
from contextshell.session_stack.SessionManager import SessionManager
99
from contextshell.Command import Command
10-
from contextshell.TreeRoot import TreeRoot
1110
from contextshell.CommandInterpreter import CommandInterpreter
1211

1312

1413
class SessionManagerTests(unittest.TestCase):
1514
def setUp(self):
16-
self.root = TreeRoot()
15+
self.root = Node()
1716
self.manager = SessionManager(self.root)
1817

1918
def test_create_session(self):

tests/session_stack/SessionStackTests.py

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
from unittest.mock import MagicMock, Mock, call
33

44
from contextshell.session_stack.SessionStack import *
5-
from contextshell.TreeRoot import TreeRoot
65
from contextshell.session_stack.SessionManager import SessionManager
76
from contextshell.ActionNode import ActionNode
87

0 commit comments

Comments
 (0)