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

Skip to content

Commit 332315e

Browse files
bcmyguest1jacalata
authored andcommitted
Workbook item nullable project (#1028)
* make project_id nullable to support "Personal Space"
1 parent 63eab28 commit 332315e

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
@@ -125,7 +125,6 @@ def project_id(self) -> Optional[str]:
125125
return self._project_id
126126

127127
@project_id.setter
128-
@property_not_nullable
129128
def project_id(self, value: str):
130129
self._project_id = value
131130

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