Skip to content

Commit

Permalink
fix: ut test
Browse files Browse the repository at this point in the history
  • Loading branch information
zoe-icu committed Feb 6, 2024
1 parent ea0262a commit a2ff66b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions apitable.py/apitable/types/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class NodeTypeEnum(str, Enum):
Form = 'Form'
Dashboard = 'Dashboard'
Mirror = 'Mirror'
Automation = 'Automation'
ERROR = "ERROR NODE TYPE"


Expand Down
2 changes: 2 additions & 0 deletions apitable.py/apitable/types/response.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,11 @@ class GETNodeListResponseData(BaseModel):
class GETNodeListResponse(ResponseBase):
data: GETNodeListResponseData


class GETSearchNodeListResponseData(BaseModel):
nodes: List[NodeSearchInfo]


class GETSearchNodeListResponse(ResponseBase):
data: GETSearchNodeListResponseData

Expand Down
2 changes: 1 addition & 1 deletion apitable.py/test/test_get_nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def test_space_root_nodes_all(self):
space_root_nodes = self.apitable.space(SPACE_ID).nodes.all()
self.assertIsInstance(space_root_nodes, list)
first_node = space_root_nodes[0]
self.assertIn(first_node.type, ["Datasheet", "Folder", "Mirror", "Form", "ERROR NODE TYPE"])
self.assertIn(first_node.type, ["Datasheet", "Folder", "Mirror", "Form", "ERROR NODE TYPE", "Automation"])

def test_get_node_detail(self):
node = self.apitable.nodes.get(FOLDER_ID)
Expand Down

0 comments on commit a2ff66b

Please sign in to comment.