Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
### Changed:
- Tree Search: Search relative path allows unix folder expression for leading sep symbol.
- Node: Updated Node signature to reflect that name is mandatory.

## [0.23.0] - 2024-12-26
### Changed:
Expand Down
2 changes: 1 addition & 1 deletion bigtree/node/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class Node(basenode.BaseNode):

"""

def __init__(self, name: str = "", sep: str = "/", **kwargs: Any):
def __init__(self, name: str, sep: str = "/", **kwargs: Any):
self.name = name
self._sep = sep
super().__init__(**kwargs)
Expand Down
2 changes: 1 addition & 1 deletion tests/node/test_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def tearDown(self):

def test_empty_node_name_error(self):
with pytest.raises(exceptions.TreeError) as exc_info:
node.Node()
node.Node("")
assert str(exc_info.value) == Constants.ERROR_NODE_NAME

def test_set_parent(self):
Expand Down
Loading