Skip to content

Commit a203a04

Browse files
authored
Fix bug in exposing ExcelRequestOptions and test (#1123)
1 parent d71b978 commit a203a04

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

tableauserverclient/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
)
4040
from .server import (
4141
CSVRequestOptions,
42+
ExcelRequestOptions,
4243
ImageRequestOptions,
4344
PDFRequestOptions,
4445
RequestOptions,

tableauserverclient/server/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from .request_factory import RequestFactory
33
from .request_options import (
44
CSVRequestOptions,
5+
ExcelRequestOptions,
56
ImageRequestOptions,
67
PDFRequestOptions,
78
RequestOptions,

test/test_view.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ def test_populate_excel(self) -> None:
294294
m.get(self.baseurl + "/d79634e1-6063-4ec9-95ff-50acbf609ff5/crosstab/excel?maxAge=1", content=response)
295295
single_view = TSC.ViewItem()
296296
single_view._id = "d79634e1-6063-4ec9-95ff-50acbf609ff5"
297-
request_option = TSC.CSVRequestOptions(maxage=1)
297+
request_option = TSC.ExcelRequestOptions(maxage=1)
298298
self.server.views.populate_excel(single_view, request_option)
299299

300300
excel_file = b"".join(single_view.excel)

0 commit comments

Comments
 (0)