8000 Workbook item nullable project (#1028) · tableau/server-client-python@3d81e00 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3d81e00

Browse files
authored
Workbook item nullable project (#1028)
* make project_id nullable to support "Personal Space"
1 parent 040dcd2 commit 3d81e00

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

tableauserverclient/models/workbook_item.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ def project_id(self) -> Optional[str]:
124124
return self._project_id
125125

126126
@project_id.setter
127-
@property_not_nullable
128127
def project_id(self, value: str):
129128
self._project_id = value
130129

test/test_workbook_model.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@
44

55

66
class WorkbookModelTests(unittest.TestCase):
7-
def test_invalid_project_id(self):
8-
self.assertRaises(ValueError, TSC.WorkbookItem, None)
9-
workbook = TSC.WorkbookItem("10")
10-
with self.assertRaises(ValueError):
11-
workbook.project_id = None
12-
137
def test_invalid_show_tabs(self):
148
workbook = TSC.WorkbookItem("10")
159
with self.assertRaises(ValueError):

0 commit comments

Comments
 (0)
0