Skip to content
Open
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
8 changes: 8 additions & 0 deletions tableauserverclient/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@
RequestOptions,
MissingRequiredFieldError,
FailedSignInError,
FlowRunCancelledException,
FlowRunFailedException,
JobCancelledException,
JobFailedException,
NotSignedInError,
ServerResponseError,
Filter,
Expand Down Expand Up @@ -98,13 +102,17 @@
"FileuploadItem",
"Filter",
"FlowItem",
"FlowRunCancelledException",
"FlowRunFailedException",
"FlowRunItem",
"get_versions",
"GroupItem",
"GroupSetItem",
"HourlyInterval",
"ImageRequestOptions",
"IntervalItem",
"JobCancelledException",
"JobFailedException",
"JobItem",
"JWTAuth",
"LinkedTaskFlowRunItem",
Expand Down
13 changes: 12 additions & 1 deletion tableauserverclient/server/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,14 @@
from tableauserverclient.server.sort import Sort
from tableauserverclient.server.server import Server
from tableauserverclient.server.pager import Pager
from tableauserverclient.server.endpoint.exceptions import FailedSignInError, NotSignedInError
from tableauserverclient.server.endpoint.exceptions import (
FailedSignInError,
FlowRunCancelledException,
FlowRunFailedException,
JobCancelledException,
JobFailedException,
NotSignedInError,
)

from tableauserverclient.server.endpoint import (
Auth,
Expand Down Expand Up @@ -60,6 +67,10 @@
"Server",
"Pager",
"FailedSignInError",
"FlowRunCancelledException",
"FlowRunFailedException",
"JobCancelledException",
"JobFailedException",
"NotSignedInError",
"Auth",
"CustomViews",
Expand Down
16 changes: 16 additions & 0 deletions test/test_import_surface.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import tableauserverclient as TSC
from tableauserverclient.server.endpoint import exceptions


def test_job_exceptions_at_top_level():
assert TSC.JobFailedException is exceptions.JobFailedException
assert TSC.JobCancelledException is exceptions.JobCancelledException
assert "JobFailedException" in TSC.__all__
assert "JobCancelledException" in TSC.__all__


def test_flow_run_exceptions_at_top_level():
assert TSC.FlowRunFailedException is exceptions.FlowRunFailedException
assert TSC.FlowRunCancelledException is exceptions.FlowRunCancelledException
assert "FlowRunFailedException" in TSC.__all__
assert "FlowRunCancelledException" in TSC.__all__
Loading