8000 Workbook item nullable project by bcmyguest1 · Pull Request #1028 · tableau/server-client-python · GitHub
[go: up one dir, main page]

Skip to content

Workbook item nullable project #1028

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
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: 0 additions & 1 deletion tableauserverclient/models/workbook_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ def project_id(self) -> Optional[str]:
return self._project_id

@project_id.setter
@property_not_nullable
def project_id(self, value: str):
self._project_id = value

Expand Down
6 changes: 0 additions & 6 deletions test/test_workbook_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@


class WorkbookModelTests(unittest.TestCase):
def test_invalid_project_id(self):
self.assertRaises(ValueError, TSC.WorkbookItem, None)
workbook = TSC.WorkbookItem("10")
with self.assertRaises(ValueError):
workbook.project_id = None

def test_invalid_show_tabs(self):
workbook = TSC.WorkbookItem("10")
with self.assertRaises(ValueError):
Expand Down
0